layerFilter can no longer be undefined here
This commit is contained in:
@@ -52,12 +52,13 @@ ol.interaction.Modify = function(opt_options) {
|
|||||||
} else if (goog.isArray(layerFilter)) {
|
} else if (goog.isArray(layerFilter)) {
|
||||||
layerFilter = function(layer) {return options.layers.indexOf(layer) > -1;};
|
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
|
* @private
|
||||||
*/
|
*/
|
||||||
this.layerFilter_ = goog.isDef(layerFilter) ? layerFilter : null;
|
this.layerFilter_ = layerFilter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Temporary sketch layer.
|
* Temporary sketch layer.
|
||||||
|
|||||||
Reference in New Issue
Block a user