Skip to content

Commit d3b77ba

Browse files
committed
Merge commit 'f29236a78fa14795745d36efcb79ee20e02e947b'
2 parents 9fecc0d + f29236a commit d3b77ba

File tree

9 files changed

+85
-83
lines changed

9 files changed

+85
-83
lines changed

.travis.yml

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
11
language: node_js
2-
32
node_js:
4-
- "5.7.0"
5-
3+
- 5.7.0
64
env:
7-
- CXX=g++-4.8
8-
5+
- CXX=g++-4.8
96
addons:
10-
apt:
11-
sources:
12-
- ubuntu-toolchain-r-test
13-
packages:
14-
- g++-4.8
15-
7+
apt:
8+
sources:
9+
- ubuntu-toolchain-r-test
10+
packages:
11+
- g++-4.8
1612
before_install:
17-
- npm install -g protractor
18-
13+
- npm install -g protractor
1914
install:
20-
- npm install -g npm@2
21-
- npm install -g grunt-cli
22-
- npm install -g bower
23-
- bower install
24-
- npm install
25-
- ./node_modules/protractor/bin/webdriver-manager update --standalone
26-
15+
- npm install -g npm@2
16+
- npm install -g grunt-cli
17+
- npm install -g bower
18+
- bower install
19+
- npm install
20+
- ./node_modules/protractor/bin/webdriver-manager update --standalone
2721
before_script:
28-
- export CHROME_BIN=chromium-browser
29-
- export DISPLAY=:99.0
30-
- sh -e /etc/init.d/xvfb start
31-
22+
- export CHROME_BIN=chromium-browser
23+
- export DISPLAY=:99.0
24+
- sh -e /etc/init.d/xvfb start
3225
script:
33-
- npm run build
34-
- npm test
35-
- grunt e2e-test
26+
- npm run build
27+
- npm test
28+
- grunt e2e-test
29+
notifications:
30+
slack:
31+
secure: iGLGsYyVIyKVpVVCskGh/zc6Pkqe0D7jpUtbywSbnq6l5seE6bvBVqm0F2FSCIN+AIC+qal2mPEWysDVsLACm5tTEeA8NfL8dmCrAKbiFbi+gHl4mnHHCHl7ii/7UkoIIXNc5UXbgMSXRS5l8UcsSDlN8VxC5zWstbJvjeYIvbA=

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ gridstack.js
1010
gridstack.js is a jQuery plugin for widget layout. This is drag-and-drop multi-column grid. It allows you to build
1111
draggable responsive bootstrap v3 friendly layouts. It also works great with [knockout.js](http://knockoutjs.com), [angular.js](https://angularjs.org) and touch devices.
1212

13-
Inspired by [gridster.js](http://gridster.net). Built with love.
13+
Inspired by [gridster.js](https://github.com/ducksboard/gridster.js). Built with love.
1414

1515
Join gridstack.js on Slack: https://gridstackjs.troolee.com
1616

@@ -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: 8 additions & 8 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",
@@ -42,14 +42,14 @@
4242
"grunt-contrib-watch": "^0.6.1",
4343
"grunt-doctoc": "^0.1.1",
4444
"grunt-jscs": "^2.8.0",
45-
"grunt-protractor-runner": "^3.0.0",
45+
"grunt-protractor-runner": "^3.2.0",
4646
"grunt-protractor-webdriver": "^0.2.5",
4747
"grunt-sass": "^1.1.0",
4848
"jasmine-core": "^2.4.1",
49-
"karma": "^0.13.22",
50-
"karma-coverage": "^0.5.5",
49+
"karma": "^1.1.2",
50+
"karma-coverage": "^1.1.1",
5151
"karma-coveralls": "^1.1.2",
52-
"karma-jasmine": "^0.3.7",
52+
"karma-jasmine": "^1.0.2",
5353
"karma-phantomjs-launcher": "^1.0.0",
5454
"phantomjs-prebuilt": "^2.1.5",
5555
"serve-static": "^1.10.2"

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.
@@ -511,7 +511,7 @@
511511
// jscs:enable requireCamelCaseOrUpperCaseIdentifiers
512512

513513
opts.itemClass = opts.itemClass || 'grid-stack-item';
514-
var isNested = this.container.closest('.' + opts.itemClass).size() > 0;
514+
var isNested = this.container.closest('.' + opts.itemClass).length > 0;
515515

516516
this.opts = _.defaults(opts || {}, {
517517
width: parseInt(this.container.attr('data-gs-width')) || 12,
@@ -687,22 +687,22 @@
687687
});
688688
}
689689
trashZone
690-
.on('dropover', function(event, ui) {
691-
var el = $(ui.draggable);
692-
var node = el.data('_gridstack_node');
693-
if (node._grid !== self) {
694-
return;
695-
}
696-
self._setupRemovingTimeout(el);
697-
})
698-
.on('dropout', function(event, ui) {
699-
var el = $(ui.draggable);
700-
var node = el.data('_gridstack_node');
701-
if (node._grid !== self) {
702-
return;
703-
}
704-
self._clearRemovingTimeout(el);
705-
});
690+
.on('dropover', function(event, ui) {
691+
var el = $(ui.draggable);
692+
var node = el.data('_gridstack_node');
693+
if (node._grid !== self) {
694+
return;
695+
}
696+
self._setupRemovingTimeout(el);
697+
})
698+
.on('dropout', function(event, ui) {
699+
var el = $(ui.draggable);
700+
var node = el.data('_gridstack_node');
701+
if (node._grid !== self) {
702+
return;
703+
}
704+
self._clearRemovingTimeout(el);
705+
});
706706
}
707707

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

0 commit comments

Comments
 (0)