Permalink
Browse files

Modified removeListener to splice a single element.

  • Loading branch information...
1 parent 0e2fa95 commit d95c9cbd83487d4521352d863a38f1c40c8d342d @rgr-myrg committed Nov 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/eventsignal.js
View
2 src/eventsignal.js
@@ -15,7 +15,7 @@
var size=listeners.length;
for(var x=0;x<size;x++){
if(listeners[x]===listener){
- listeners.splice(x);
+ listeners.splice(x,1);
}
}
};

0 comments on commit d95c9cb

Please sign in to comment.