diff --git a/js/tree.js b/js/tree.js index a1a5e4fc6..639be6640 100644 --- a/js/tree.js +++ b/js/tree.js @@ -115,7 +115,7 @@ // the "name" attribute is also supported but is deprecated for "text". // add attributes to tree-branch or tree-item - var attr = value['attr'] || value.dataAttributes || []; + var attr = value.attr || value.dataAttributes || []; $.each(attr, function (key, value) { switch (key) { case 'cssClass':