diff --git a/src/nodes/ui-makeymakey.js b/src/nodes/ui-makeymakey.js index 87d9d78..e4a19e4 100644 --- a/src/nodes/ui-makeymakey.js +++ b/src/nodes/ui-makeymakey.js @@ -89,6 +89,13 @@ $(function(){ this.send("right", "bang"); this.$(".info").text('Right!'); }, + remove: function() { + var keys = ['space', 'up', 'down', 'left', 'right']; + for (key in keys) { + Mousetrap.unbind(key, 'keydown'); + } + $(window).unbind('click'); + }, outputs: { space: { type: "bang"