projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cea556b
)
User scripts cleanup for ControlInput events
author
Darren
<darren@darrenwhitlen.com>
Tue, 12 Aug 2014 15:13:33 +0000
(16:13 +0100)
committer
Darren
<darren@darrenwhitlen.com>
Tue, 12 Aug 2014 15:13:33 +0000
(16:13 +0100)
client/src/applets/scripteditor.js
patch
|
blob
|
blame
|
history
diff --git
a/client/src/applets/scripteditor.js
b/client/src/applets/scripteditor.js
index e75e07520a4f8121e3aa3745ad770d2e5733cc21..9c0afe1d6e92e903f24a64c98dc7fb28feccbb97 100644
(file)
--- 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(); i
nput.off(); i
f(this.dispose) this.dispose(); }';
// Try to compile the user script
try {