Skip to content

Commit

Permalink
Merge pull request #21 from jason-brodie-codebaby/master
Browse files Browse the repository at this point in the history
Fixing issue around removing listeners
  • Loading branch information
frankyghost committed Jan 30, 2014
2 parents c5bc62f + e76cc74 commit 16e8361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/projekktor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2186,7 +2186,7 @@ projekktor = $p = function() {
for (var i=0; i<len;i++) {
if (this.listeners[i]==undefined) continue;
if (this.listeners[i].event!=evt[0] && evt[0]!=='*') continue;
if ( (this.listeners[i].ns!=evt[1] && evt[1]!=='*') || (this.listeners[i].callback!=callback && callback!=null) ) continue;
if ( (this.listeners[i].ns!=evt[1] && evt[1]!=='*') || (this.listeners[i].callback+''!=callback+'' && callback!=null) ) continue;
this.listeners.splice(i,1);
}
return this;
Expand Down

0 comments on commit 16e8361

Please sign in to comment.