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