mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Formatting and jshint
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user