From 208863d36bb2d9bdd35f0979c20f6123e591b038 Mon Sep 17 00:00:00 2001 From: Alain Dumesny Date: Wed, 5 Feb 2020 22:39:55 -0800 Subject: [PATCH 01/44] `gridstack()` init method return GridStack * `gridstack()` init method will no longer return a JQuery object (part of removing JQ from our API), but rather `GridStack | GridStack[]` (if multiple are present) making it much more convenient. * Instead of: $('.grid-stack').gridstack(opt); var grid = $('.grid-stack').data('gridstack'); you can now just: var grid = $('.grid-stack').gridstack(opt); --- demo/anijs.html | 14 +-- demo/column.html | 3 +- demo/float.html | 62 ++++++----- demo/index.html | 2 +- demo/knockout.html | 6 +- demo/knockout2.html | 6 +- demo/nested.html | 4 +- demo/responsive.html | 2 +- demo/right-to-left(rtl).html | 6 +- demo/serialization.html | 90 ++++++++-------- demo/two.html | 4 +- doc/CHANGES.md | 14 ++- doc/README.md | 6 +- spec/e2e/html/810-many-columns.html | 21 ++-- spec/e2e/html/gridstack-with-height.html | 34 +++--- spec/gridstack-spec.js | 125 +++++++++++------------ spec/gridstack-tests.ts | 20 ++++ src/gridstack.d.ts | 14 +-- src/gridstack.js | 15 ++- 19 files changed, 221 insertions(+), 227 deletions(-) create mode 100644 spec/gridstack-tests.ts diff --git a/demo/anijs.html b/demo/anijs.html index 6636ac07b..bc4b451c3 100644 --- a/demo/anijs.html +++ b/demo/anijs.html @@ -10,12 +10,9 @@ - -
@@ -31,9 +28,8 @@

Widget added

diff --git a/demo/index.html b/demo/index.html index a61462c88..e6a2e8439 100644 --- a/demo/index.html +++ b/demo/index.html @@ -8,7 +8,7 @@

Demos