Skip to content

Commit

Permalink
fix b-init event
Browse files Browse the repository at this point in the history
  • Loading branch information
vitkarpov committed Jan 21, 2016
1 parent 5306eb9 commit d263b2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Block.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var Block = function(block) {

this._addEvents();
this._setInited();
this.emit(this._getEventName('b-inited'));
this.$node.trigger('b-inited');
};

/**
Expand Down Expand Up @@ -98,7 +98,7 @@ Block.prototype.destroy = function() {
helpers.cache[this._id] = null;
this.$node.removeClass('jb-inited');
this.off();
this.emit(this._getEventName('b-destroyed'));
this.$node.trigger('b-destroyed');
};

/**
Expand Down

0 comments on commit d263b2d

Please sign in to comment.