This commit is contained in:
d 2016-08-16 15:36:22 -04:00
parent 56801119c2
commit 696b0f7ca8
5 changed files with 17 additions and 14 deletions

View file

@ -476,9 +476,10 @@ Changes
#### v0.2.6-dev (Development version)
- update requirements to the latest versions of jQuery and jquery-ui.
- update requirements to the latest versions of jQuery (v3.1.0+) and jquery-ui (v1.12.0+).
- fix jQuery `size()` ([#486](https://github.com/troolee/gridstack.js/issues/486)).
- update _notify to allow detach ([#411](https://github.com/troolee/gridstack.js/issues/411)).
- fix code that checks for jquery-ui ([#481](https://github.com/troolee/gridstack.js/issues/481)).
#### v0.2.5 (2016-03-02)

11
dist/gridstack.js vendored
View file

@ -975,6 +975,9 @@
};
GridStack.prototype._prepareElementsByNode = function(el, node) {
if (typeof $.ui === 'undefined') {
return;
}
var self = this;
var cellWidth;
@ -1160,9 +1163,7 @@
}, triggerAddEvent);
el.data('_gridstack_node', node);
if (!this.opts.staticGrid) {
this._prepareElementsByNode(el, node);
}
this._prepareElementsByNode(el, node);
};
GridStack.prototype.setAnimation = function(enable) {
@ -1258,7 +1259,7 @@
el.each(function(index, el) {
el = $(el);
var node = el.data('_gridstack_node');
if (self.opts.staticGrid || typeof node == 'undefined' || node === null) {
if (typeof node == 'undefined' || node === null || typeof $.ui === 'undefined') {
return;
}
@ -1278,7 +1279,7 @@
el.each(function(index, el) {
el = $(el);
var node = el.data('_gridstack_node');
if (self.opts.staticGrid || typeof node == 'undefined' || node === null) {
if (typeof node == 'undefined' || node === null || typeof $.ui === 'undefined') {
return;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -975,6 +975,9 @@
};
GridStack.prototype._prepareElementsByNode = function(el, node) {
if (typeof $.ui === 'undefined') {
return;
}
var self = this;
var cellWidth;
@ -1160,9 +1163,7 @@
}, triggerAddEvent);
el.data('_gridstack_node', node);
if (!this.opts.staticGrid) {
this._prepareElementsByNode(el, node);
}
this._prepareElementsByNode(el, node);
};
GridStack.prototype.setAnimation = function(enable) {
@ -1258,7 +1259,7 @@
el.each(function(index, el) {
el = $(el);
var node = el.data('_gridstack_node');
if (self.opts.staticGrid || typeof node == 'undefined' || node === null) {
if (typeof node == 'undefined' || node === null || typeof $.ui === 'undefined') {
return;
}
@ -1278,7 +1279,7 @@
el.each(function(index, el) {
el = $(el);
var node = el.data('_gridstack_node');
if (self.opts.staticGrid || typeof node == 'undefined' || node === null) {
if (typeof node == 'undefined' || node === null || typeof $.ui === 'undefined') {
return;
}