Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 8d829443af9dbb2fa490b522d98082df68426280 1 parent 3f791a2
Michael Leibman mleibman authored

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. +4 3 slick.grid.js
7 slick.grid.js
@@ -299,9 +299,10 @@ if (typeof Slick === "undefined") {
299 299 }
300 300
301 301 selectionModel = model;
302   - selectionModel.init(self);
303   -
304   - selectionModel.onSelectedRangesChanged.subscribe(handleSelectedRangesChanged);
  302 + if (selectionModel) {
  303 + selectionModel.init(self);
  304 + selectionModel.onSelectedRangesChanged.subscribe(handleSelectedRangesChanged);
  305 + }
305 306 }
306 307
307 308 function getSelectionModel() {

0 comments on commit 8d82944

Please sign in to comment.
Something went wrong with that request. Please try again.