From a7a8a6f38e7f89cb102bb70bd7f853391e97a6cd Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 23 Dec 2015 10:09:11 -0500 Subject: [PATCH] Cancel throttled hash updates in hash.off() --- js/id/behavior/hash.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/id/behavior/hash.js b/js/id/behavior/hash.js index 1cc298c1d..c861ca575 100644 --- a/js/id/behavior/hash.js +++ b/js/id/behavior/hash.js @@ -74,6 +74,8 @@ iD.behavior.Hash = function(context) { } hash.off = function() { + throttledUpdate.cancel(); + context.map() .on('move.hash', null);