Skip to content

Commit 47fbdd1

Browse files
authored
Merge pull request #492 from troolee/develop
0.2.6-dev
2 parents f0c7613 + 9a9e8ec commit 47fbdd1

File tree

8 files changed

+57
-51
lines changed

8 files changed

+57
-51
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Join gridstack.js on Slack: https://gridstackjs.troolee.com
4545
- [Using AniJS](#using-anijs)
4646
- [The Team](#the-team)
4747
- [Changes](#changes)
48+
- [v0.2.6-dev (Development version)](#v026-dev-development-version)
4849
- [v0.2.5 (2016-03-02)](#v025-2016-03-02)
4950
- [v0.2.4 (2016-02-15)](#v024-2016-02-15)
5051
- [v0.2.3 (2015-06-23)](#v023-2015-06-23)
@@ -69,8 +70,8 @@ Usage
6970
## Requirements
7071

7172
* [lodash.js](https://lodash.com) (>= 3.5.0, full build)
72-
* [jQuery](http://jquery.com) (>= 1.11.0)
73-
* [jQuery UI](http://jqueryui.com) (>= 1.11.0). Minimum required components: Core, Widget, Mouse, Draggable, Resizable
73+
* [jQuery](http://jquery.com) (>= 3.1.0)
74+
* [jQuery UI](http://jqueryui.com) (>= 1.12.0). Minimum required components: Core, Widget, Mouse, Draggable, Resizable
7475
* (Optional) [jquery-ui-touch-punch](https://github.com/furf/jquery-ui-touch-punch) for touch-based devices support
7576

7677
Note: You can still use [underscore.js](http://underscorejs.org) (>= 1.7.0) instead of lodash.js
@@ -473,6 +474,11 @@ for help.
473474
Changes
474475
=======
475476

477+
#### v0.2.6-dev (Development version)
478+
479+
- update requirements to the latest versions
480+
- fix jQuery `size()`
481+
476482
#### v0.2.5 (2016-03-02)
477483

478484
- update names to respect js naming convention.

bower.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gridstack",
3-
"version": "0.2.5",
3+
"version": "0.2.6-dev",
44
"homepage": "https://github.com/troolee/gridstack.js",
55
"authors": [
66
"Pavel Reznikov <pashka.reznikov@gmail.com>"
@@ -14,9 +14,9 @@
1414
"amd"
1515
],
1616
"dependencies": {
17-
"lodash": ">= 3.5.0",
18-
"jquery": ">= 1.11.0",
19-
"jquery-ui": ">= 1.11.0"
17+
"lodash": ">= 4.14.2",
18+
"jquery": ">= 3.1.0",
19+
"jquery-ui": ">= 1.12.0"
2020
},
2121
"keywords": [
2222
"gridstack",

dist/gridstack.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack.js 0.2.5
2+
* gridstack.js 0.2.6-dev
33
* http://troolee.github.io/gridstack.js/
44
* (c) 2014-2016 Pavel Reznikov
55
* gridstack.js may be freely distributed under the MIT license.
@@ -508,7 +508,7 @@
508508
// jscs:enable requireCamelCaseOrUpperCaseIdentifiers
509509

510510
opts.itemClass = opts.itemClass || 'grid-stack-item';
511-
var isNested = this.container.closest('.' + opts.itemClass).size() > 0;
511+
var isNested = this.container.closest('.' + opts.itemClass).length > 0;
512512

513513
this.opts = _.defaults(opts || {}, {
514514
width: parseInt(this.container.attr('data-gs-width')) || 12,
@@ -684,22 +684,22 @@
684684
});
685685
}
686686
trashZone
687-
.on('dropover', function(event, ui) {
688-
var el = $(ui.draggable);
689-
var node = el.data('_gridstack_node');
690-
if (node._grid !== self) {
691-
return;
692-
}
693-
self._setupRemovingTimeout(el);
694-
})
695-
.on('dropout', function(event, ui) {
696-
var el = $(ui.draggable);
697-
var node = el.data('_gridstack_node');
698-
if (node._grid !== self) {
699-
return;
700-
}
701-
self._clearRemovingTimeout(el);
702-
});
687+
.on('dropover', function(event, ui) {
688+
var el = $(ui.draggable);
689+
var node = el.data('_gridstack_node');
690+
if (node._grid !== self) {
691+
return;
692+
}
693+
self._setupRemovingTimeout(el);
694+
})
695+
.on('dropout', function(event, ui) {
696+
var el = $(ui.draggable);
697+
var node = el.data('_gridstack_node');
698+
if (node._grid !== self) {
699+
return;
700+
}
701+
self._clearRemovingTimeout(el);
702+
});
703703
}
704704

705705
if (!self.opts.staticGrid && self.opts.acceptWidgets) {

dist/gridstack.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/gridstack.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gridstack",
3-
"version": "0.2.5",
3+
"version": "0.2.6-dev",
44
"description": "gridstack.js is a jQuery plugin for widget layout",
55
"main": "dist/gridstack.js",
66
"repository": {
@@ -25,9 +25,9 @@
2525
},
2626
"homepage": "http://troolee.github.io/gridstack.js/",
2727
"dependencies": {
28-
"jquery": "^2.2.1",
29-
"jquery-ui": "^1.10.5",
30-
"lodash": "^4.5.1"
28+
"jquery": "^3.1.0",
29+
"jquery-ui": "^1.12.0",
30+
"lodash": "^4.14.2"
3131
},
3232
"devDependencies": {
3333
"connect": "^3.4.1",

spec/utils-spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ describe('gridstack utils', function() {
6767

6868
var style = $('STYLE[data-gs-style-id=' + _id + ']');
6969

70-
expect(style.size()).toEqual(1);
70+
expect(style.length).toEqual(1);
7171
expect(style.prop('tagName')).toEqual('STYLE');
7272

7373
utils.removeStylesheet(_id)
7474

7575
style = $('STYLE[data-gs-style-id=' + _id + ']');
7676

77-
expect(style.size()).toEqual(0);
77+
expect(style.length).toEqual(0);
7878
});
7979

8080
});

src/gridstack.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack.js 0.2.5
2+
* gridstack.js 0.2.6-dev
33
* http://troolee.github.io/gridstack.js/
44
* (c) 2014-2016 Pavel Reznikov
55
* gridstack.js may be freely distributed under the MIT license.
@@ -508,7 +508,7 @@
508508
// jscs:enable requireCamelCaseOrUpperCaseIdentifiers
509509

510510
opts.itemClass = opts.itemClass || 'grid-stack-item';
511-
var isNested = this.container.closest('.' + opts.itemClass).size() > 0;
511+
var isNested = this.container.closest('.' + opts.itemClass).length > 0;
512512

513513
this.opts = _.defaults(opts || {}, {
514514
width: parseInt(this.container.attr('data-gs-width')) || 12,
@@ -684,22 +684,22 @@
684684
});
685685
}
686686
trashZone
687-
.on('dropover', function(event, ui) {
688-
var el = $(ui.draggable);
689-
var node = el.data('_gridstack_node');
690-
if (node._grid !== self) {
691-
return;
692-
}
693-
self._setupRemovingTimeout(el);
694-
})
695-
.on('dropout', function(event, ui) {
696-
var el = $(ui.draggable);
697-
var node = el.data('_gridstack_node');
698-
if (node._grid !== self) {
699-
return;
700-
}
701-
self._clearRemovingTimeout(el);
702-
});
687+
.on('dropover', function(event, ui) {
688+
var el = $(ui.draggable);
689+
var node = el.data('_gridstack_node');
690+
if (node._grid !== self) {
691+
return;
692+
}
693+
self._setupRemovingTimeout(el);
694+
})
695+
.on('dropout', function(event, ui) {
696+
var el = $(ui.draggable);
697+
var node = el.data('_gridstack_node');
698+
if (node._grid !== self) {
699+
return;
700+
}
701+
self._clearRemovingTimeout(el);
702+
});
703703
}
704704

705705
if (!self.opts.staticGrid && self.opts.acceptWidgets) {

0 commit comments

Comments
 (0)