Wrong Fast docs

36 views
Skip to first unread message

KasparsJ

unread,
May 9, 2017, 5:59:12 AM5/9/17
to Haxe
Hi all,

There is a wrong example in:

Maybe somebody could remove...

The last paragraph:

In case your app might get self-closed nodes, check before: 
var myNode2Value = (fast.node.myNode2.hasNode.innerData)? fast.node.myNode2.innerData : ""; // default to whatever value you want

Now this is wrong! hasNode.innerData - will always return false, as it actually checks if there is a sub-node: <myNode2><innerData/></myNode2>, and has nothing to do with the innerData property. I currently do: fast.x.iterator().hasNext(), to check if there is innerData.
Reply all
Reply to author
Forward
0 new messages