Cancel throttled hash updates in hash.off()

This commit is contained in:
Bryan Housel
2015-12-23 10:09:11 -05:00
parent 3830396e0f
commit a7a8a6f38e

View File

@@ -74,6 +74,8 @@ iD.behavior.Hash = function(context) {
}
hash.off = function() {
throttledUpdate.cancel();
context.map()
.on('move.hash', null);