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) {
|
||||
return this.each(function () {
|
||||
if (!$(this).data('_gridstack')) {
|
||||
$(this).data('_gridstack', new GridStack(this, opts));
|
||||
if (!$(this).data('gridstack')) {
|
||||
$(this).data('gridstack', new GridStack(this, opts));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue