Skip to content

Commit

Permalink
clone grid option
Browse files Browse the repository at this point in the history
  • Loading branch information
adumesny committed Apr 16, 2020
1 parent e3ff7e6 commit e7fa77e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Change log
- fix [1229](https://github.com/gridstack/gridstack.js/issues/1229) `staticGrid` no longer disable oneColumnMode
- fix [1195](https://github.com/gridstack/gridstack.js/issues/1195) options broken with ember hash helper - thanks [@btecu](https://github.com/btecu)
- fix [1250](https://github.com/gridstack/gridstack.js/issues/1250) don't remove item from another grid
- fix [1261](https://github.com/gridstack/gridstack.js/issues/1261) `init()` clones passed options so second doesn't affect first one

## 1.1.1 (2020-03-17)

Expand Down
2 changes: 1 addition & 1 deletion src/gridstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,7 @@
var el = $(elOrString).get(0);
if (!el) return;
if (!el.gridstack) {
el.gridstack = new GridStack(el, opts);
el.gridstack = new GridStack(el, Utils.clone(opts));
}
return el.gridstack
};
Expand Down

0 comments on commit e7fa77e

Please sign in to comment.