problem with node.toggle

10 views
Skip to first unread message

Adriaan

unread,
Nov 3, 2008, 11:43:10 AM11/3/08
to mootree
Hi All,

When I use node.toggle as follows, all of my JS code stops to run -
right after the toggle has run... I can't even do a simple
alert('test'); afterwards...

------
var node = tree.get( nodeID );
node.toggle(false,true);

alert('test');
------

The node toggles fine as expected, but I never see the alert...

I've tried commenting things out in the .toggle function, and it seems
that it's actually the update() function that's causing the problem,
as when I comment that out, I get the alert...

I haven't changed any of the code, and am using r18.

Any help would be greatly appreciated.
Adriaan

Adriaan

unread,
Nov 3, 2008, 12:21:19 PM11/3/08
to mootree
never mind, I found my problem... was trying to toggle a node that
didn't exist...
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages