@@ -93,6 +93,11 @@ function init(display, container, module, moduleToReplace) {
93 return newElm;
93 return newElm;
97+ removeListeners(listeners);
96 var Module = {};
101 var Module = {};
97 var reportAnyErrors = function() {};
102 var reportAnyErrors = function() {};
@@ -117,7 +122,12 @@ function init(display, container, module, moduleToReplace) {
119 reportAnyErrors();
124 reportAnyErrors();
120− return { send:send, recv:recv, swap:swap };
126+ send:send,
123function filterListeners(inputs, listeners) {
133function filterListeners(inputs, listeners) {