dynatree("destroy") doesn't work?

2,370 views
Skip to first unread message

Zoro

unread,
Apr 23, 2012, 6:11:12 AM4/23/12
to Discuss jquery.dynatree.js
I try destroy dynatree using $(".tree").dynatree("destroy"); but this
don't work for me.

I used version 1.2.0 and 1.2.1_rc3.

According to ui.widget, each widget has a destroy method. But i don't
find destroy method in the source code.

Zoro

unread,
Apr 23, 2012, 7:12:07 AM4/23/12
to Discuss jquery.dynatree.js
I apologize for the hasty conclusion. Destroy work, just don't remove
DOM tree. So i wrote:

$(".tree").dynatree("destroy");
$('.tree").empty();

After this you can reinitialize dynatree.

Thanks.

mar10

unread,
Apr 24, 2012, 1:41:27 AM4/24/12
to dyna...@googlegroups.com

sriniva...@gmail.com

unread,
Jan 25, 2018, 7:37:51 AM1/25/18
to Discuss jquery.dynatree.js
This code working for me. Thank you.
Reply all
Reply to author
Forward
0 new messages