-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use local variables instead of the data object to store current getIt…
…em and getLength function references. This is an issue if a parent window passes an array to a child window (e.g. a popup). Slick grid in the child window will see that the data object does not have getItem and getLength functions so it will add them. However, when the child window closes, parent window will have an array that has "getItem" and "getLength" properties pointing to functions that were defined in a now-nonexistent window. If it now passes the same data object to another child window, things will go BOOOM. Using local variables prevents this problem because the data object is not being changed in child window.
- Loading branch information
Showing
1 changed file
with
45 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters