uses proper equality checks

This commit is contained in:
Francisco Dans 2015-01-08 17:10:43 +01:00
parent d2a557acd9
commit 981e117731

View File

@ -203,7 +203,7 @@ CartoCSS.prototype = {
symbolizers: []
});
for(var u = 0; u<def.rules.length; u++){
if(def.rules[u].name == "marker-file" || def.rules[u].name == "point-file"){
if(def.rules[u].name === "marker-file" || def.rules[u].name === "point-file"){
var value = def.rules[u].value.value[0].value[0].value.value;
this.imageURLs.push(value);
}