optimize change event. close #120

This commit is contained in:
Anton Lavrenov
2016-01-07 15:57:36 +08:00
parent 2e76cfba30
commit ff82ad1901
5 changed files with 40 additions and 3 deletions

View File

@@ -1732,6 +1732,9 @@
var oldVal;
if(val !== undefined) {
oldVal = this.attrs[key];
if (oldVal === val) {
return;
}
this.attrs[key] = val;
this._fireChangeEvent(key, oldVal, val);
}