diff options
author | mleibman <michael.leibman@gmail.com> | 2010-12-09 21:45:14 -0800 |
---|---|---|
committer | mleibman <michael.leibman@gmail.com> | 2010-12-09 22:11:05 -0800 |
commit | cc45b923a484f72e236fa3d527a2df331ab96d3c (patch) | |
tree | dcc83dbfd595bb889d1f1902dc28b0879e29544a /slick.dataview.js | |
parent | 5f88203f4b3c70eed7feaf31e65d71d95d2272c5 (diff) | |
download | SlickGrid-cc45b923a484f72e236fa3d527a2df331ab96d3c.zip SlickGrid-cc45b923a484f72e236fa3d527a2df331ab96d3c.tar.gz SlickGrid-cc45b923a484f72e236fa3d527a2df331ab96d3c.tar.bz2 |
Added a mechanism to set scope ("this") in events.
Grid and DataView now set the scope to the instance.
Corrected args format in events in DataView.
Diffstat (limited to 'slick.dataview.js')
-rw-r--r-- | slick.dataview.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/slick.dataview.js b/slick.dataview.js index a0599d4..f8272e7 100644 --- a/slick.dataview.js +++ b/slick.dataview.js @@ -68,7 +68,7 @@ if (args.pageNum != undefined) pagenum = Math.min(args.pageNum, Math.ceil(totalRows / pagesize)); - onPagingInfoChanged.notify(getPagingInfo()); + onPagingInfoChanged.notify(getPagingInfo(), null, self); refresh(); } @@ -231,9 +231,9 @@ updated = null; - if (totalRowsBefore != totalRows) onPagingInfoChanged.notify(getPagingInfo()); - if (countBefore != rows.length) onRowCountChanged.notify({previous:countBefore, current:rows.length}); - if (diff.length > 0) onRowsChanged.notify(diff); + if (totalRowsBefore != totalRows) onPagingInfoChanged.notify(getPagingInfo(), null, self); + if (countBefore != rows.length) onRowCountChanged.notify({previous:countBefore, current:rows.length}, null, self); + if (diff.length > 0) onRowsChanged.notify({rows:diff}, null, self); } |