Navigation Menu

Skip to content

Commit

Permalink
Modified removeListener to splice a single element.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgr-myrg committed Nov 7, 2011
1 parent 0e2fa95 commit d95c9cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eventsignal.js
Expand Up @@ -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);
}
}
};
Expand Down

0 comments on commit d95c9cb

Please sign in to comment.