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