Skip to content

Commit c6431ac

Browse files
committed
Update bower file
1 parent 800dd0a commit c6431ac

File tree

6 files changed

+37
-9
lines changed

6 files changed

+37
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Thumbs.db
1212
# Project dependencies #
1313
########################
1414
node_modules
15+
bower_components
1516

1617
# IDE files #
1718
.idea

bower.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
{
22
"name": "angular-ui-tree",
33
"version": "2.1.5",
4-
"homepage": "https://github.com/JimLiu/angular-ui-tree",
4+
"homepage": "http://angular-ui-tree.github.io/website",
55
"authors": [
66
"Jim Liu <https://github.com/JimLiu>",
7-
"Voles <https://github.com/Voles>"
7+
"Voles <https://github.com/Voles>",
8+
"Clément Prévot <https://github.com/clementprevot>",
9+
"More: https://github.com/angular-ui-tree/angular-ui-tree/graphs/contributors"
810
],
9-
"description": "Tree directive for the angular.js",
11+
"description": "An AngularJS UI component that can sort nested lists, provides drag & drop support and doesn't depend on jQuery",
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/angular-ui-tree/angular-ui-tree"
15+
},
1016
"main": [
1117
"dist/angular-ui-tree.js",
18+
"dist/angular-ui-tree.min.js",
1219
"dist/angular-ui-tree.min.css"
1320
],
1421
"keywords": [

demo/dist/angular-ui-tree.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
},
4949

5050
setNodeAttribute: function(scope, attrName, val) {
51+
if (!scope.$modelValue) {
52+
return null;
53+
}
5154
var data = this.nodesData[scope.$modelValue.$$hashKey];
5255
if (!data) {
5356
data = {};
@@ -57,6 +60,9 @@
5760
},
5861

5962
getNodeAttribute: function(scope, attrName) {
63+
if (!scope.$modelValue) {
64+
return null;
65+
}
6066
var data = this.nodesData[scope.$modelValue.$$hashKey];
6167
if (data) {
6268
return data[attrName];
@@ -371,10 +377,16 @@
371377
$scope.maxDepth = 0;
372378

373379
$scope.initSubNode = function(subNode) {
380+
if(!subNode.$modelValue) {
381+
return null;
382+
}
374383
$scope.$nodesMap[subNode.$modelValue.$$hashKey] = subNode;
375384
};
376385

377386
$scope.destroySubNode = function(subNode) {
387+
if(!subNode.$modelValue) {
388+
return null;
389+
}
378390
$scope.$nodesMap[subNode.$modelValue.$$hashKey] = null;
379391
};
380392

demo/dist/angular-ui-tree.min.js

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

dist/angular-ui-tree.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
},
4949

5050
setNodeAttribute: function(scope, attrName, val) {
51-
if (!scope.$modelValue) return null;
51+
if (!scope.$modelValue) {
52+
return null;
53+
}
5254
var data = this.nodesData[scope.$modelValue.$$hashKey];
5355
if (!data) {
5456
data = {};
@@ -58,7 +60,9 @@
5860
},
5961

6062
getNodeAttribute: function(scope, attrName) {
61-
if (!scope.$modelValue) return null;
63+
if (!scope.$modelValue) {
64+
return null;
65+
}
6266
var data = this.nodesData[scope.$modelValue.$$hashKey];
6367
if (data) {
6468
return data[attrName];
@@ -373,12 +377,16 @@
373377
$scope.maxDepth = 0;
374378

375379
$scope.initSubNode = function(subNode) {
376-
if(!subNode.$modelValue) return null;
380+
if(!subNode.$modelValue) {
381+
return null;
382+
}
377383
$scope.$nodesMap[subNode.$modelValue.$$hashKey] = subNode;
378384
};
379385

380386
$scope.destroySubNode = function(subNode) {
381-
if(!subNode.$modelValue) return null;
387+
if(!subNode.$modelValue) {
388+
return null;
389+
}
382390
$scope.$nodesMap[subNode.$modelValue.$$hashKey] = null;
383391
};
384392

dist/angular-ui-tree.min.js

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

0 commit comments

Comments
 (0)