Use === and !== for comparisons with 0

This commit is contained in:
Tom Payne
2013-05-28 16:07:48 +02:00
parent c0cfc7872e
commit 11672db967
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -417,7 +417,7 @@ ol.projection.removeTransform = function(source, destination) {
var transform = transforms[sourceCode][destinationCode];
delete transforms[sourceCode][destinationCode];
var keys = goog.object.getKeys(transforms[sourceCode]);
if (keys.length == 0) {
if (keys.length === 0) {
delete transforms[sourceCode];
}
return transform;