From c19a190905f8af4a8f0e8e8c0ace27e968814105 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Thu, 6 May 2010 20:56:35 +0000 Subject: [PATCH] Merge rules without creating a new rules object. r=tschaub (closes #2622) git-svn-id: http://svn.openlayers.org/trunk/openlayers@10295 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Style.js b/lib/OpenLayers/Style.js index 2595f25bcb..c04c2e717b 100644 --- a/lib/OpenLayers/Style.js +++ b/lib/OpenLayers/Style.js @@ -333,7 +333,7 @@ OpenLayers.Style = OpenLayers.Class({ * rules - {Array()} */ addRules: function(rules) { - this.rules = this.rules.concat(rules); + Array.prototype.push.apply(this.rules, rules); this.propertyStyles = this.findPropertyStyles(); },