Merge pull request #2008 from mourner/master

Update Lo-Dash to 2.3.0 custom build and improve panning performance
This commit is contained in:
John Firebaugh
2013-11-21 14:40:22 -08:00
3 changed files with 2590 additions and 3338 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ iD.behavior.Hash = function(context) {
var move = _.throttle(function() {
var s1 = formatter(context.map());
if (s0 !== s1) location.replace(s0 = s1); // don't recenter the map!
}, 500);
}, 500, {leading: false});
function hashchange() {
if (location.hash === s0) return; // ignore spurious hashchange events
+1 -1
View File
@@ -73,7 +73,7 @@ iD.ui.Attribution = function(context) {
.on('change.attribution', update);
context.map()
.on('move.attribution', _.throttle(update, 400));
.on('move.attribution', _.throttle(update, 400, {leading: false}));
update();
};
+2588 -3336
View File
File diff suppressed because it is too large Load Diff