Skip to content
This repository has been archived by the owner on Dec 6, 2017. It is now read-only.

Commit

Permalink
- Allow selection model to be set back to null/undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
mleibman committed Jul 24, 2011
1 parent 3f791a2 commit 8d82944
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions slick.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8d82944

Please sign in to comment.