Browse files

Latest updates

  • Loading branch information...
1 parent 1965142 commit 0c28a0db6c32395ed1580906f3e32d582d82c6db @lsmith committed Apr 23, 2012
Showing with 6 additions and 5,627 deletions.
  1. +0 −5,622 src/gallery-paginator-dev-preview/js/datatable.js
  2. +6 −5 src/gallery-paginator-dev-preview/js/paginator.js
View
5,622 src/gallery-paginator-dev-preview/js/datatable.js
0 additions, 5,622 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
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;
}
},

0 comments on commit 0c28a0d

Please sign in to comment.