Inline goog.isDef() property checks

This commit is contained in:
Tim Schaub
2015-09-27 10:21:50 -06:00
parent 7659e47e07
commit b36d697585
27 changed files with 58 additions and 58 deletions

View File

@@ -91,9 +91,9 @@ ol.source.Vector = function(opt_options) {
*/
this.loader_ = goog.nullFunction;
if (goog.isDef(options.loader)) {
if (options.loader !== undefined) {
this.loader_ = options.loader;
} else if (goog.isDef(options.url)) {
} else if (options.url !== undefined) {
goog.asserts.assert(goog.isDef(options.format),
'format must be set when url is set');
// create a XHR feature loader for "url" and "format"