jshint clean

This commit is contained in:
Tom MacWright
2012-11-26 10:21:14 -05:00
parent 3d72ba63cc
commit 21e5037d78
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ var iD = function(container) {
.on('click', function (mode) { controller.enter(mode); });
controller.on('enter', function (entered) {
buttons.classed('active', function (mode) { return entered === mode; })
buttons.classed('active', function (mode) { return entered === mode; });
});
bar.append('button')
+7 -1
View File
@@ -5,7 +5,13 @@ iD.Hash = function() {
hadHash,
map;
var qs = function(a,b,c,d,e){for(b=/[?&]?([^=]+)=([^&]*)/g,c={},e=decodeURIComponent;d=b.exec(a.replace(/\+/g,' '));c[e(d[1])]=e(d[2]));return c;};
function qs(str) {
return str.split('&').reduce(function(obj, pair){
var parts = pair.split('=');
obj[parts[0]] = (null === parts[1]) ? '' : decodeURIComponent(parts[1]);
return obj;
}, {});
}
var parser = function(map, s) {
var q = qs(s);