From d263b2d4645d9136c38536915826bef3ff75b708 Mon Sep 17 00:00:00 2001 From: vitkarpov Date: Thu, 21 Jan 2016 13:35:15 +0300 Subject: [PATCH] fix b-init event --- src/Block.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Block.js b/src/Block.js index 0850ea3..9ebc85a 100644 --- a/src/Block.js +++ b/src/Block.js @@ -22,7 +22,7 @@ var Block = function(block) { this._addEvents(); this._setInited(); - this.emit(this._getEventName('b-inited')); + this.$node.trigger('b-inited'); }; /** @@ -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'); }; /**