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: [] symbolizers: []
}); });
for(var u = 0; u<def.rules.length; u++){ 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; var value = def.rules[u].value.value[0].value[0].value.value;
this.imageURLs.push(value); this.imageURLs.push(value);
} }