Inline !goog.isDef() property checks

This commit is contained in:
Tim Schaub
2015-09-27 10:24:38 -06:00
parent 6638ae855d
commit 3a0683f373
8 changed files with 9 additions and 9 deletions

View File

@@ -837,7 +837,7 @@ describe('ol.extent', function() {
it('takes arbitrary function', function() {
var transformFn = function(input, output, opt_dimension) {
var dimension = goog.isDef(opt_dimension) ? opt_dimension : 2;
if (!goog.isDef(output)) {
if (output === undefined) {
output = new Array(input.length);
}
var n = input.length;