From 3199fad50d87aba0cdfa6f52ce05cb54a5e100bc Mon Sep 17 00:00:00 2001 From: Pavel Reznikov Date: Tue, 11 Nov 2014 19:04:59 -0800 Subject: [PATCH] use gridstack instead _gridstack as data name for root element --- gridstack.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } }); };