commit | e65a88a70cb8444adbf042e6b4f0d9b1a5cbe3c9 | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Thu Apr 05 19:14:20 2018 +0200 |
committer | Akron <nils@diewald-online.de> | Thu Apr 05 19:14:20 2018 +0200 |
tree | de2223926a45eb28b926d3d4855bd81077790ed1 | |
parent | 712733a38371a8b4164533599620159af5baa0ad [diff] [blame] |
Introduced text type to VC and improve test suite Change-Id: Ic51f3de112af5ec8d35bbae3bd97e988dbdb1a47
diff --git a/dev/js/src/vc/item.js b/dev/js/src/vc/item.js index d2c6fc1..f9267e8 100644 --- a/dev/js/src/vc/item.js +++ b/dev/js/src/vc/item.js
@@ -80,7 +80,8 @@ // Create list item var li = document.createElement("li"); - li.setAttribute("data-type", this._type); + if (this._type) + li.setAttribute("data-type", this._type); li.setAttribute("data-key", this._key); // Connect action