File tree 5 files changed +17
-14
lines changed 5 files changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -476,9 +476,10 @@ Changes
476
476
477
477
#### v0.2.6-dev (Development version)
478
478
479
- - update requirements to the latest versions of jQuery and jquery-ui.
479
+ - update requirements to the latest versions of jQuery (v3.1.0+) and jquery-ui (v1.12.0+) .
480
480
- fix jQuery ` size() ` ([ #486 ] ( https://github.com/troolee/gridstack.js/issues/486 ) ).
481
481
- update _ notify to allow detach ([ #411 ] ( https://github.com/troolee/gridstack.js/issues/411 ) ).
482
+ - fix code that checks for jquery-ui ([ #481 ] ( https://github.com/troolee/gridstack.js/issues/481 ) ).
482
483
483
484
#### v0.2.5 (2016-03-02)
484
485
Original file line number Diff line number Diff line change 975
975
} ;
976
976
977
977
GridStack . prototype . _prepareElementsByNode = function ( el , node ) {
978
+ if ( typeof $ . ui === 'undefined' ) {
979
+ return ;
980
+ }
978
981
var self = this ;
979
982
980
983
var cellWidth ;
1160
1163
} , triggerAddEvent ) ;
1161
1164
el . data ( '_gridstack_node' , node ) ;
1162
1165
1163
- if ( ! this . opts . staticGrid ) {
1164
- this . _prepareElementsByNode ( el , node ) ;
1165
- }
1166
+ this . _prepareElementsByNode ( el , node ) ;
1166
1167
} ;
1167
1168
1168
1169
GridStack . prototype . setAnimation = function ( enable ) {
1258
1259
el . each ( function ( index , el ) {
1259
1260
el = $ ( el ) ;
1260
1261
var node = el . data ( '_gridstack_node' ) ;
1261
- if ( self . opts . staticGrid || typeof node == 'undefined' || node === null ) {
1262
+ if ( typeof node == 'undefined' || node === null || typeof $ . ui === 'undefined' ) {
1262
1263
return ;
1263
1264
}
1264
1265
1278
1279
el . each ( function ( index , el ) {
1279
1280
el = $ ( el ) ;
1280
1281
var node = el . data ( '_gridstack_node' ) ;
1281
- if ( self . opts . staticGrid || typeof node == 'undefined' || node === null ) {
1282
+ if ( typeof node == 'undefined' || node === null || typeof $ . ui === 'undefined' ) {
1282
1283
return ;
1283
1284
}
1284
1285
You can’t perform that action at this time.
0 commit comments