[Fix] Updated to strolch-wc-tree 0.2.0
This commit is contained in:
parent
67f3dd25e5
commit
fe05596b6f
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "strolch-wc-inspector",
|
"name": "strolch-wc-inspector",
|
||||||
"description": "Strolch WebComponent Inspector",
|
"description": "Strolch WebComponent Inspector",
|
||||||
"version": "0.22.1",
|
"version": "0.22.2",
|
||||||
"authors": ["Robert von Burg"],
|
"authors": ["Robert von Burg"],
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"strolch",
|
"strolch",
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
"strolchjs": "strolch-li/strolchjs#^0.4.3",
|
"strolchjs": "strolch-li/strolchjs#^0.4.3",
|
||||||
"strolch-wc-styles": "strolch-li/strolch-wc-styles#^0.3.1",
|
"strolch-wc-styles": "strolch-li/strolch-wc-styles#^0.3.1",
|
||||||
"strolch-wc-debounced-input": "strolch-li/strolch-wc-debounced-input#^0.1.1",
|
"strolch-wc-debounced-input": "strolch-li/strolch-wc-debounced-input#^0.1.1",
|
||||||
"strolch-wc-tree": "strolch-li/strolch-wc-tree#^0.1.10",
|
"strolch-wc-tree": "strolch-li/strolch-wc-tree#^0.2.0",
|
||||||
"strolch-wc-ws-observer": "strolch-li/strolch-wc-ws-observer#^0.2.7",
|
"strolch-wc-ws-observer": "strolch-li/strolch-wc-ws-observer#^0.2.7",
|
||||||
|
|
||||||
"polymer": "Polymer/polymer#^1.11.3",
|
"polymer": "Polymer/polymer#^1.11.3",
|
||||||
|
|
|
@ -664,7 +664,7 @@
|
||||||
|
|
||||||
/* Private */
|
/* Private */
|
||||||
_getIcon: function (item) {
|
_getIcon: function (item) {
|
||||||
if (item == null || item.state == null || item.state == '') return '';
|
if (item == null || item.state == null || item.state === '') return '';
|
||||||
return this.resolveUrl('icons/' + item.state + '.png');
|
return this.resolveUrl('icons/' + item.state + '.png');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -672,21 +672,23 @@
|
||||||
|
|
||||||
/* Lifecycle */
|
/* Lifecycle */
|
||||||
ready: function () {
|
ready: function () {
|
||||||
var that = this;
|
|
||||||
this.funcObj = {
|
this.funcObj = {
|
||||||
getTitle: function (item) {
|
getTitle: function (item) {
|
||||||
return item == null ? "" : "<b>" + item.type + "</b>:		" + item.name;
|
return item == null ? "" : "<b>" + item.type + "</b>:		" + item.name;
|
||||||
|
}.bind(this),
|
||||||
|
useIcon: function (item) {
|
||||||
|
return item != null && item.state != null && item.state !== '';
|
||||||
},
|
},
|
||||||
getIcon: function (item) {
|
getIcon: function (item) {
|
||||||
if (item == null || item.state == null || item.state == '') return '';
|
if (item == null || item.state == null || item.state === '') return '';
|
||||||
return that.resolveUrl('icons/' + item.state + '.png');
|
return this.resolveUrl('icons/' + item.state + '.png');
|
||||||
},
|
}.bind(this),
|
||||||
hasElements: function (item) {
|
hasElements: function (item) {
|
||||||
return item != null && item.elements && item.elements.length > 0;
|
return item != null && item.elements && item.elements.length > 0;
|
||||||
},
|
}.bind(this),
|
||||||
getElements: function (item) {
|
getElements: function (item) {
|
||||||
return item == null ? [] : (item.elements ? item.elements : []);
|
return item == null ? [] : (item.elements ? item.elements : []);
|
||||||
}
|
}.bind(this)
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
reload: function () {
|
reload: function () {
|
||||||
|
|
Loading…
Reference in New Issue