From 3af6521ee341c9765b837b11da86e8348af4e2d4 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Thu, 19 Dec 2013 13:24:06 +0100 Subject: [PATCH] Use addFeaturesInternal in ol.source.Vector constructor --- src/ol/source/vectorsource.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ol/source/vectorsource.js b/src/ol/source/vectorsource.js index b5e9df9e1b..c90dbbc679 100644 --- a/src/ol/source/vectorsource.js +++ b/src/ol/source/vectorsource.js @@ -63,11 +63,7 @@ ol.source.Vector = function(opt_options) { this.featureChangeKeys_ = {}; if (goog.isDef(options.features)) { - var features = options.features; - var i, ii; - for (i = 0, ii = features.length; i < ii; ++i) { - this.addFeature(features[i]); - } + this.addFeaturesInternal(options.features); } };