Skip to content

Commit 85ff441

Browse files
committed
i-bem: Get rid of _delInitedMod
1 parent 35776fe commit 85ff441

3 files changed

Lines changed: 2 additions & 10 deletions

File tree

common.blocks/i-bem-dom/i-bem-dom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function extractParams(domNode) {
241241
*/
242242
function removeDomNodeFromEntity(entity, domNode) {
243243
if(entity.domElem.length === 1) {
244-
entity._delInitedMod();
244+
entity.delMod('js');
245245
delete uniqIdToEntity[entity._uniqId];
246246
} else {
247247
entity.domElem = entity.domElem.not(domNode);

common.blocks/i-bem/i-bem.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ describe('i-bem', function() {
10381038
it('should not call callback if block destructed', function(done) {
10391039
var spy = sinon.spy();
10401040
block._nextTick(spy);
1041-
block._delInitedMod();
1041+
block.delMod('js');
10421042
setTimeout(function() {
10431043
spy.called.should.be.false;
10441044
done();

common.blocks/i-bem/i-bem.vanilla.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,6 @@ var BemEntity = inherit(/** @lends BemEntity.prototype */ {
239239
return this.setMod('js', 'inited');
240240
},
241241

242-
/**
243-
* Deletes a BEM entity
244-
* @private
245-
*/
246-
_delInitedMod : function() {
247-
this.delMod('js');
248-
},
249-
250242
/**
251243
* Checks whether a BEM entity has a modifier
252244
* @param {String} modName Modifier name

0 commit comments

Comments
 (0)