Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 5512653

Browse files
authored
Merge pull request #47 from skateman/bump-version
Bump version to v2.1.4
2 parents e62a1ed + 8907bf6 commit 5512653

6 files changed

Lines changed: 24 additions & 15 deletions

File tree

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "patternfly-bootstrap-treeview",
33
"description": "Tree View for Twitter Bootstrap",
4-
"version": "2.1.3",
4+
"version": "2.1.4",
55
"homepage": "https://github.com/patternfly/patternfly-bootstrap-treeview",
66
"main": "dist/bootstrap-treeview.js",
77
"keywords": [

dist/bootstrap-treeview.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -972,11 +972,14 @@
972972
node.$el
973973
.append(this._template.badge.clone()
974974
.addClass(
975-
typeof node.tagsClass[id] === 'string' ?
976-
node.tagsClass[id] :
977-
this._options.tagsClass
975+
(typeof tag === 'object' ? tag.class : undefined)
976+
|| node.tagsClass
977+
|| this._options.tagsClass
978+
)
979+
.append(
980+
(typeof tag === 'object' ? tag.text : undefined)
981+
|| tag
978982
)
979-
.append(tag)
980983
);
981984
}, this));
982985
}

dist/bootstrap-treeview.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.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "patternfly-bootstrap-treeview",
33
"description": "Tree View for Twitter Bootstrap",
4-
"version": "2.1.3",
4+
"version": "2.1.4",
55
"homepage": "https://github.com/patternfly/patternfly-bootstrap-treeview",
66
"author": {
77
"name": "Red Hat"

public/js/bootstrap-treeview.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -972,11 +972,14 @@
972972
node.$el
973973
.append(this._template.badge.clone()
974974
.addClass(
975-
typeof node.tagsClass[id] === 'string' ?
976-
node.tagsClass[id] :
977-
this._options.tagsClass
975+
(typeof tag === 'object' ? tag.class : undefined)
976+
|| node.tagsClass
977+
|| this._options.tagsClass
978+
)
979+
.append(
980+
(typeof tag === 'object' ? tag.text : undefined)
981+
|| tag
978982
)
979-
.append(tag)
980983
);
981984
}, this));
982985
}

tests/lib/bootstrap-treeview.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -972,11 +972,14 @@
972972
node.$el
973973
.append(this._template.badge.clone()
974974
.addClass(
975-
typeof node.tagsClass[id] === 'string' ?
976-
node.tagsClass[id] :
977-
this._options.tagsClass
975+
(typeof tag === 'object' ? tag.class : undefined)
976+
|| node.tagsClass
977+
|| this._options.tagsClass
978+
)
979+
.append(
980+
(typeof tag === 'object' ? tag.text : undefined)
981+
|| tag
978982
)
979-
.append(tag)
980983
);
981984
}, this));
982985
}

0 commit comments

Comments
 (0)