this.state[key] = changes[key] = toUpdate[key];
}
}.bind(this));
+ // console.log(changes);
if(_.isFunction(this.onStateChange)) {
this.onStateChange(changes);
if(_.isBoolean(changes.active)) {
// })
this.dom.css('display', what);
this._container().css('display', what);
+ },
+ children: function() {
+ return [];
}
});
if(text === '') {
text = utils.unicode.ZWS;
}
- if(text !== this.getText()) {
+ if(text !== this.dom.contents()[0].data) {
this.dom.contents()[0].data = text;
}
},