14 Commits

Author SHA1 Message Date
08da4a4d74 fix unit tests 2015-05-18 21:17:13 -06:00
8473bd6d9d update dependencies and jshint 2015-04-28 21:00:24 -06:00
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
7af6bf7a98 Add unit testing for core API, ensure all demos work, and add unit testing to ensure they stay working. 2015-04-12 23:26:19 -06:00
72007139cb Merge remote-tracking branch 'sogawa/gridster.js/strict-sort'
* sogawa/gridster.js/strict-sort:
  Convert to integer type of property value when sorting.
  add element "#qunit-testresult"
  rename test files.
2015-04-07 19:56:44 -06:00
5b1dfbec94 Merge remote-tracking branch 'ducksboard/bug-493-jquery-no-global-fail'
* ducksboard/bug-493-jquery-no-global-fail:
  Fix for bug #493 including unit tests to prove.
2015-04-07 19:24:36 -06:00
c0a2bde09c Fix for bug #493 including unit tests to prove.
Run npm install and visit test/jquery.gridster-amd.html in browser.
2015-03-03 00:46:11 +00:00
0ad0b3bd92 Convert to integer type of property value when sorting. 2014-12-18 03:29:48 +09:00
913462f190 add element "#qunit-testresult" 2014-12-17 23:50:30 +09:00
975e389e0a rename test files. 2014-12-17 23:48:48 +09: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