Fix - support ol.Collection only as features

This commit is contained in:
Alexandre Dubé
2015-03-27 08:58:21 -04:00
parent 42d2adb1cf
commit b34d7ce6cc
2 changed files with 3 additions and 7 deletions

View File

@@ -65,11 +65,7 @@ ol.interaction.Snap = function(opt_options) {
* @type {?ol.Collection.<ol.Feature>}
* @private
*/
this.features_ = goog.isDef(options.features) ?
goog.isArray(options.features) ?
new ol.Collection(options.features) :
options.features :
null;
this.features_ = goog.isDef(options.features) ? options.features : null;
/**
* @type {ol.Collection.<goog.events.Key>}