Skip to content

Commit

Permalink
Dropping useless Function.call occurrences
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Apr 13, 2015
1 parent 1cb00e6 commit ca923df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions emmett.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
// Variant 3
if (isPlainObject(a)) {
for (event in a)
this.on.call(this, event, a[event], b);
this.on(event, a[event], b);
return this;
}

Expand Down Expand Up @@ -349,7 +349,7 @@
// Variant 3
else if (isPlainObject(events)) {
for (k in events)
this.off.call(this, k, events[k]);
this.off(k, events[k]);
}

return this;
Expand Down Expand Up @@ -417,7 +417,7 @@
if (isPlainObject(events)) {

for (var k in events)
this.emit.call(this, k, events[k]);
this.emit(k, events[k]);

return this;
}
Expand Down
2 changes: 1 addition & 1 deletion emmett.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ca923df

Please sign in to comment.