layerFilter can no longer be undefined here

This commit is contained in:
ahocevar
2013-11-13 00:39:37 +01:00
parent 4e85322abb
commit b805a76ae1

View File

@@ -52,12 +52,13 @@ ol.interaction.Modify = function(opt_options) {
} else if (goog.isArray(layerFilter)) {
layerFilter = function(layer) {return options.layers.indexOf(layer) > -1;};
}
goog.asserts.assertFunction(layerFilter);
/**
* @type {null|function(ol.layer.Layer):boolean}
* @type {function(ol.layer.Layer):boolean}
* @private
*/
this.layerFilter_ = goog.isDef(layerFilter) ? layerFilter : null;
this.layerFilter_ = layerFilter;
/**
* Temporary sketch layer.