5 Commits

Author SHA1 Message Date
576b5ae3f0 fix(gridster): ensure coords instances are destroyed on widgets
…when removing a widget, or when destroying the gridster instance.
Before this change, if you called destroy without `remove` set to true,
coords instances was leaking jQuery data objects.

Also nullified the gridmap, and faux_grid arrays.
2015-04-16 20:26:19 +02:00
7de5bbabc0 feat(gridster): add config to set custom show/hide widget methods
by default jQuery’s `hide` and `show` methods are used. You could also
use fadeIn/fadeOut or write your own kind of jQuery plugin like
`$.fn.showInAFancyWay` and use `showInAFancyWay` as the value in the
show_method config option.

If you want to keep the previos behaviour, you need to set
`hide_method` option to `’fadeOut’`

Breaking Changes

`remove_widget` and `remove_all_widgets` methods not return a promise
instead of the gridster instance
2015-04-16 20:26:18 +02:00
e258d595b0 tests(gridster): add basic test suite for gridster
Tests are build with mocha + chai, and you can run them from the command line with `grunt karma` or opening `test/index.html` in your browser.

This is a first approach, there are hundreds of tests more that should be added.
I’ve ported some tests on PRs but more needs to be done.
2015-04-16 20:26:18 +02:00
9cdd02df41 get rid of jquery-ui, not used anymore 2012-07-27 13:28:15 +02:00
257914ee99 initial commit 2012-07-18 18:31:44 +02:00