use gridstack instead _gridstack as data name for root element
This commit is contained in:
parent
f478db80ca
commit
3199fad50d
|
@ -292,8 +292,8 @@
|
||||||
|
|
||||||
$.fn.gridstack = function (opts) {
|
$.fn.gridstack = function (opts) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
if (!$(this).data('_gridstack')) {
|
if (!$(this).data('gridstack')) {
|
||||||
$(this).data('_gridstack', new GridStack(this, opts));
|
$(this).data('gridstack', new GridStack(this, opts));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue