diff --git a/gridstack.js b/gridstack.js index 98a2b05..60af6ee 100644 --- a/gridstack.js +++ b/gridstack.js @@ -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)); } }); };