|
|
@ -171,9 +171,9 @@ |
|
|
|
this.element.addClass(o.cls); |
|
|
|
this.element.addClass(o.cls); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (o.key != null) { |
|
|
|
// if (o.key != null) {
|
|
|
|
this.element.attr("key", o.key); |
|
|
|
// this.element.attr("key", o.key);
|
|
|
|
} |
|
|
|
// }
|
|
|
|
if (o.attributes) { |
|
|
|
if (o.attributes) { |
|
|
|
this.element.attr(o.attributes); |
|
|
|
this.element.attr(o.attributes); |
|
|
|
} |
|
|
|
} |
|
|
@ -200,9 +200,12 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
__watch: function (getter, handler, options) { |
|
|
|
__watch: function (getter, handler, options) { |
|
|
|
|
|
|
|
var self = this; |
|
|
|
if (_global.Fix) { |
|
|
|
if (_global.Fix) { |
|
|
|
this._watchers = this._watchers || []; |
|
|
|
this._watchers = this._watchers || []; |
|
|
|
var watcher = new Fix.Watcher(null, BI.bind(getter, this), (handler && BI.bind(handler, this)) || BI.emptyFn, options); |
|
|
|
var watcher = new Fix.Watcher(null, BI.bind(getter, this), (handler && function () { |
|
|
|
|
|
|
|
handler.call(self, self); |
|
|
|
|
|
|
|
}) || BI.emptyFn, options); |
|
|
|
this._watchers.push(watcher); |
|
|
|
this._watchers.push(watcher); |
|
|
|
return watcher.value; |
|
|
|
return watcher.value; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|