Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b4d14a

Browse files
committed
make sure 'new GridStack(el)' set el.gridstack=this
right away as code during loading might depend on those vars being set.
1 parent 0af68d3 commit 2b4d14a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gridstack.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ export class GridStack {
267267
* @param opts
268268
*/
269269
public constructor(el: GridHTMLElement, opts: GridStackOptions = {}) {
270+
el.gridstack = this;
270271
this.el = el; // exposed HTML element to the user
271272
opts = opts || {}; // handles null/undefined/0
272273

0 commit comments

Comments
 (0)