You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before 0.3.9, using Grid.set("store" null) worked for disconnecting a store from the Grid (useful when adding/removing lots of objects from the store).
I think simply changing that expression to the following will fix the issue:
if(store&&typeofstore.notify==="function"){
Alternately, if this isn't how one should unset/disconnect a store from a Grid, there doesn't appear to be an API for that. For what it's worth, I seem to recall this being the way to do it with the old dojox grids (calling setStore(null)).
The text was updated successfully, but these errors were encountered:
Before 0.3.9, using Grid.set("store" null) worked for disconnecting a store from the Grid (useful when adding/removing lots of objects from the store).
This now fails on https://github.com/SitePen/dgrid/blob/master/_StoreMixin.js#L110 ,
because the code is trying to read the "notify" property of null. This was changed as part of a fix for #677.
I think simply changing that expression to the following will fix the issue:
Alternately, if this isn't how one should unset/disconnect a store from a Grid, there doesn't appear to be an API for that. For what it's worth, I seem to recall this being the way to do it with the old dojox grids (calling setStore(null)).
The text was updated successfully, but these errors were encountered: