Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 1499f88

Browse files
author
AngularUI (via TravisCI)
committed
Travis commit : build 477
1 parent 82954be commit 1499f88

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

bower.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "angular-ui-sortable",
3-
"version": "0.14.3",
3+
"version": "0.15.0",
44
"main": ["./sortable.js"],
55
"dependencies": {
66
"angular": ">=1.2.x",
7-
"jquery": "<3.0.0",
8-
"jquery-ui": ">=1.9"
7+
"jquery": ">=3.1.x",
8+
"jquery-ui": ">=1.12.x"
99
}
1010
}

sortable.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* angular-ui-sortable - This directive allows you to jQueryUI Sortable.
3-
* @version v0.14.3 - 2016-06-30
3+
* @version v0.15.0 - 2016-10-15
44
* @link http://angular-ui.github.com
55
* @license MIT
66
*/
@@ -32,8 +32,8 @@ angular.module('ui.sortable', [])
3232
var savedNodes;
3333

3434
function combineCallbacks(first, second){
35-
var firstIsFunc = first && (typeof first === 'function');
36-
var secondIsFunc = second && (typeof second === 'function');
35+
var firstIsFunc = typeof first === 'function';
36+
var secondIsFunc = typeof second === 'function';
3737
if(firstIsFunc && secondIsFunc) {
3838
return function() {
3939
first.apply(this, arguments);
@@ -71,12 +71,8 @@ angular.module('ui.sortable', [])
7171
}
7272

7373
// patch the options that need to have values set
74-
if (!value) {
75-
if (key === 'items') {
76-
value = uiSortableConfig.items;
77-
} else if (key === 'ui-model-items') {
78-
value = uiSortableConfig.items;
79-
}
74+
if (!value && (key === 'items' || key === 'ui-model-items')) {
75+
value = uiSortableConfig.items;
8076
}
8177

8278
return value;

sortable.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.

0 commit comments

Comments
 (0)