Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Latest updates

  • Loading branch information...
commit 0c28a0db6c32395ed1580906f3e32d582d82c6db 1 parent 1965142
@lsmith authored
View
5,622 src/gallery-paginator-dev-preview/js/datatable.js
0 additions, 5,622 deletions not shown
View
11 src/gallery-paginator-dev-preview/js/paginator.js
@@ -205,8 +205,9 @@ Y.Paginator.SimpleView = Y.Base.create(PAGINATOR, Y.View, [], {
},
_bindUI: function () {
- if (!this._pageChangeHandle) {
- this._pageChangeHandle = this.get('host').after('pageChange',
+ if (!this._changeHandles) {
+ this._changeHandles = this.get('host').after(
+ ['pageChange', 'totalItemsChange', 'itemsPerPageChange'],
this.render, this);
}
},
@@ -246,9 +247,9 @@ Y.Paginator.SimpleView = Y.Base.create(PAGINATOR, Y.View, [], {
events: events,
destructor: function () {
- if (this._pageChangeHandle) {
- this._pageChangeHandle.detach();
- delete this._pageChangeHandle;
+ if (this._changeHandles) {
+ this._changeHandles.detach();
+ delete this._changeHandles;
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.