From f3f1547db12659b93a395b491a1da54e23a0e0b6 Mon Sep 17 00:00:00 2001 From: Darren Date: Tue, 12 Aug 2014 16:13:33 +0100 Subject: [PATCH] User scripts cleanup for ControlInput events --- client/src/applets/scripteditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/applets/scripteditor.js b/client/src/applets/scripteditor.js index e75e075..9c0afe1 100644 --- a/client/src/applets/scripteditor.js +++ b/client/src/applets/scripteditor.js @@ -42,7 +42,7 @@ script_content += this.editor.getValue() + '\n'; // Add a dispose method to the user script for cleaning up - script_content += 'this._dispose = function(){ network.off(); if(this.dispose) this.dispose(); }'; + script_content += 'this._dispose = function(){ network.off(); input.off(); if(this.dispose) this.dispose(); }'; // Try to compile the user script try { -- 2.25.1