jshint fixes

This commit is contained in:
Tom MacWright
2013-02-26 20:01:41 -05:00
parent f7b316304a
commit 3f7d78edfb
4 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -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;
}
}));
}
+1 -1
View File
@@ -6,5 +6,5 @@ iD.ui.Attribution = function(context) {
selection
.append('span')
.attr('class', 'provided-by');
}
};
};
+1 -1
View File
@@ -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
View File
@@ -36,5 +36,5 @@ iD.ui.Zoom = function(context) {
d3.select(document)
.call(keybinding);
}
};
};