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
This commit is contained in:
ahocevar
2010-05-06 20:56:35 +00:00
parent baa4e7469b
commit c19a190905

View File

@@ -333,7 +333,7 @@ OpenLayers.Style = OpenLayers.Class({
* rules - {Array(<OpenLayers.Rule>)}
*/
addRules: function(rules) {
this.rules = this.rules.concat(rules);
Array.prototype.push.apply(this.rules, rules);
this.propertyStyles = this.findPropertyStyles();
},