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

Skip to content

Commit 3199fad

Browse files
committed
use gridstack instead _gridstack as data name for root element
1 parent f478db8 commit 3199fad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gridstack.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@
292292

293293
$.fn.gridstack = function (opts) {
294294
return this.each(function () {
295-
if (!$(this).data('_gridstack')) {
296-
$(this).data('_gridstack', new GridStack(this, opts));
295+
if (!$(this).data('gridstack')) {
296+
$(this).data('gridstack', new GridStack(this, opts));
297297
}
298298
});
299299
};

0 commit comments

Comments
 (0)