Skip to content

Commit 84b27cc

Browse files
darkxanterbenmccann
authored andcommitted
destroy hammer.js instance on plugin destroy (#270)
1 parent 2c6e340 commit 84b27cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ var zoomPlugin = {
683683
mc.remove('panstart');
684684
mc.remove('pan');
685685
mc.remove('panend');
686+
mc.destroy();
686687
}
687688
}
688689
};

0 commit comments

Comments
 (0)