use gridstack instead _gridstack as data name for root element

This commit is contained in:
Pavel Reznikov 2014-11-11 19:04:59 -08:00
parent f478db80ca
commit 3199fad50d

View file

@ -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));
}
});
};