Skip to content

Commit

Permalink
i-bem: fix on/un for use with "use strict"
Browse files Browse the repository at this point in the history
  • Loading branch information
belozer authored Dec 19, 2018
1 parent 5dc95cf commit 5840920
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common.blocks/i-bem/i-bem.vanilla.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ var BEM = inherit(events.Emitter, /** @lends BEM.prototype */ {
e = this.__self._buildModEventName(e);
}

return this.__base.apply(this, arguments);
return this.__base(e, data, fn, ctx);
},

/**
Expand All @@ -213,7 +213,7 @@ var BEM = inherit(events.Emitter, /** @lends BEM.prototype */ {
e = this.__self._buildModEventName(e);
}

return this.__base.apply(this, arguments);
return this.__base(e, fn, ctx);
},

/**
Expand Down Expand Up @@ -700,7 +700,7 @@ var BEM = inherit(events.Emitter, /** @lends BEM.prototype */ {
e = this._buildModEventName(e);
}

return this.__base.apply(this, arguments);
return this.__base(e, data, fn, ctx);
},

/**
Expand All @@ -715,7 +715,7 @@ var BEM = inherit(events.Emitter, /** @lends BEM.prototype */ {
e = this._buildModEventName(e);
}

return this.__base.apply(this, arguments);
return this.__base(e, fn, ctx);
},

_buildModEventName : function(modEvent) {
Expand Down

0 comments on commit 5840920

Please sign in to comment.