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:
@@ -333,7 +333,7 @@ OpenLayers.Style = OpenLayers.Class({
|
|||||||
* rules - {Array(<OpenLayers.Rule>)}
|
* rules - {Array(<OpenLayers.Rule>)}
|
||||||
*/
|
*/
|
||||||
addRules: function(rules) {
|
addRules: function(rules) {
|
||||||
this.rules = this.rules.concat(rules);
|
Array.prototype.push.apply(this.rules, rules);
|
||||||
this.propertyStyles = this.findPropertyStyles();
|
this.propertyStyles = this.findPropertyStyles();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user