Formatting and jshint

This commit is contained in:
Tom MacWright
2012-12-05 16:55:27 -05:00
parent 6ac7d5d7d5
commit 5e56b12d85
3 changed files with 7 additions and 2 deletions
+5 -1
View File
@@ -33,7 +33,11 @@ iD.Entity.prototype = {
hasInterestingTags: function() {
return _.keys(this.tags).some(function (key) {
return key != "attribution" && key != "created_by" && key != "source" && key != 'odbl' && key.indexOf('tiger:') != 0;
return key != "attribution" &&
key != "created_by" &&
key != "source" &&
key != 'odbl' &&
key.indexOf('tiger:') !== 0;
});
}
};
+1
View File
@@ -36,6 +36,7 @@ iD.modes.Select = function (entity) {
switch (entity.type) {
case 'way':
mode.history.perform(iD.actions.DeleteWay(entity));
break;
case 'node':
mode.history.perform(iD.actions.DeleteNode(entity));
}
+1 -1
View File
@@ -80,7 +80,7 @@ iD.util.geo.roundCoords = function(c) {
iD.util.geo.interp = function(p1, p2, t) {
return [p1[0] + (p2[0] - p1[0]) * t,
p1[1] + (p2[1] - p1[1]) * t]
p1[1] + (p2[1] - p1[1]) * t];
};
iD.util.geo.dist = function(a, b) {