jquery - Tree won't load in ie 8 -


I am using the jqtree plugin and I can not seem to load the tree in 8. I get an error in I88 saying that children do not have zero or one object but I have not found that error in any other browser.

The error occurs on the 8th line of code below - Unable to retrieve the 'undefined' or 'reference' property of zero reference.

node.protipip .loadfirm.data = function (data) {var node, o, _i, _len; This.removeChildren (); (_i = 0, _len = data.length; _i & lt; _len; _i ++) for {o = data [_i]; Node = new this.tree.node_class (o); This.addChild (node); If (type o o === 'object' & amp; o.children) {node.loadFromData (o.children); }} Return tap; };

This is my html

   & Lt; Title & gt; EMC Automation Test Suite & lt; / Title & gt; & Lt; Link rel = "stylesheet" href = "jqtree.css" & gt; & Lt; Link rel = "stylesheet" href = "/ fontawesome / css / font-awesome.min.css" & gt; & Lt; Link href = "// maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel = "stylesheet" & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H1 & gt; EMC Automation Test Suite & lt; / H1> & Lt; Div id = "tree1" data-url = "/ treejsonobject /" class & gt; & Lt; / Div & gt; & Lt; Script src = "script / jquery-1.11.1.js" & gt; & Lt; / Script & gt; & Lt; Script src = "script / tree.jquery.js" & gt; & Lt; / Script & gt; & Lt; Script src = "scripts / bootstrap.min.js" & gt; & Lt; / Script & gt; & Lt; Script src = "script / jquery.cookie.js" & gt; & Lt; / Script & gt; & Lt; Script src = "script / jquery.mockjax.js" & gt; & Lt; / Script & gt; & Lt; Script src = "index.json" & gt; & Lt; / Script & gt; & Lt; Script src = "scripts / save_state.js" & gt; & Lt; / Script & gt; & Lt; / Body & gt;  

And here is my java script

  $ Mockjax ({url: '*', response: function (option) {This.responseText = TreeJsonObject.treejsonobject;}, response time: 0}); Tree ({saveState: true, saveState: 'my-tree', closed Icon: $ ('& lt; i class = "FA-plus-square"> I / I>), opened icon: $ ('& Lt; i class = "fa-minus-square"> ;}})}};  

I have tried to add it to my script

  $ (function () {$ (# tree1). Child (). Remove () });  

But this code simply disables the loading of the tree.


Comments