Skip to content

gridstack() init method return GridStack ** BREAKING CHANGE***#1141

Merged
adumesny merged 1 commit into
gridstack:developfrom
adumesny:develop
Feb 6, 2020
Merged

gridstack() init method return GridStack ** BREAKING CHANGE***#1141
adumesny merged 1 commit into
gridstack:developfrom
adumesny:develop

Conversation

@adumesny

@adumesny adumesny commented Feb 6, 2020

Copy link
Copy Markdown
Member

Description

BREAKING CHANGE

  • 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);

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test)
  • Extended the README / documentation, if necessary

* `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);
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.06%) to 67.903% when pulling 0944010 on adumesny:develop into d988466 on gridstack:develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants