mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 13:18:15 +02:00
jshint fixes
This commit is contained in:
+3
-2
@@ -4,7 +4,7 @@ window.iD = function () {
|
||||
|
||||
// https://github.com/systemed/iD/issues/772
|
||||
// http://mathiasbynens.be/notes/localstorage-pattern#comment-9
|
||||
try { storage = localStorage } catch (e) {}
|
||||
try { storage = localStorage; } catch (e) {}
|
||||
storage = storage || {};
|
||||
|
||||
context.storage = function(k, v) {
|
||||
@@ -106,7 +106,8 @@ window.iD = function () {
|
||||
context.background()
|
||||
.source(_.find(iD.layers, function(l) {
|
||||
if (l.data.sourcetag === q.layer) {
|
||||
return (detected = true);
|
||||
detected = true;
|
||||
return true;
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -6,5 +6,5 @@ iD.ui.Attribution = function(context) {
|
||||
selection
|
||||
.append('span')
|
||||
.attr('class', 'provided-by');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
+1
-1
@@ -28,5 +28,5 @@ iD.ui.Splash = function(context) {
|
||||
website: '<a href="http://ideditor.com/">ideditor.com</a>',
|
||||
github: '<a href="https://github.com/systemed/iD">github.com</a>'
|
||||
}));
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
+1
-1
@@ -36,5 +36,5 @@ iD.ui.Zoom = function(context) {
|
||||
|
||||
d3.select(document)
|
||||
.call(keybinding);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user