
Untitled
By: a guest on
May 5th, 2012 | syntax:
None | size: 0.49 KB | hits: 12 | expires: Never
Y.WidgetPositionAlign.prototype._attachUIHandles: function() {
if (this._uiHandles) { return; }
var syncAlign = Y.bind(this._syncAlign, this);
this._uiHandles = [
Y.one(WINDOW).on(RESIZE, syncAlign),
Y.on(SCROLL, syncAlign),
this.after("destroy", this._detachUIHandles)
];
};
Y.WidgetPositionAlign.prototype._detachUIHandles = function () {
if (this._uiHandles) {
new Y.EventHandle(this._uiHandles).detach();
this._uiHandles = null;
}
}