Permalink
Browse files

- Allow selection model to be set back to null/undefined.

  • Loading branch information...
1 parent 3f791a2 commit 8d829443af9dbb2fa490b522d98082df68426280 @mleibman mleibman committed Jul 24, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 slick.grid.js
View
@@ -299,9 +299,10 @@ if (typeof Slick === "undefined") {
}
selectionModel = model;
- selectionModel.init(self);
-
- selectionModel.onSelectedRangesChanged.subscribe(handleSelectedRangesChanged);
+ if (selectionModel) {
+ selectionModel.init(self);
+ selectionModel.onSelectedRangesChanged.subscribe(handleSelectedRangesChanged);
+ }
}
function getSelectionModel() {

0 comments on commit 8d82944

Please sign in to comment.