My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 152: Javascript Exception error when using .dynatree("destroy").dynatree(... ) on non-existant Tree.
1 person starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  ----
Closed:  Nov 2010


 
Reported by prana001, Sep 29, 2010
What steps will reproduce the problem?
1. $("#treeDataFolders").dynatree("destroy").dynatree(...
2.
3.

(If possible, please attach an example HTML file, that works when copied
into the dynatree/doc/ folder.)

What is the expected output? What do you see instead?


What version of the product are you using?
On what operating system and browser?

Latest production version: 0.5.4


Please provide any additional information below.
Love this Tree!

Some times I need to destroy a Tree and create a new one.
I've tried using the jQuery "chain" method: $("#treeDataFolders").dynatree("destroy").dynatree(... 

Unfortunately, this will give me an Javascript Exception error.
Possibly because it wants to destroy a Tree that doesn't exist.

So, could this be enhanced? At least don't throw an exception when
a non-existant Tree is being destroyed().

Thank you.
Jeffrey

Sep 30, 2010
Project Member #1 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Accepted
Labels: Milestone-Release0.5.5
Nov 7, 2010
Project Member #2 moo...@wwwendt.de
(destroy is a method of the widget standard, not specific to dynatree.)
Does it happen with v1.0 also?
Could you put it into a try/catch block, to handle the 'tree does not exist' case?
Status: Waiting
Labels: -Milestone-Release0.5.5 Milestone-Release1.0
Nov 9, 2010
#3 prana001
No, it doesn't happen anymore with 1.0
Yes, a try{} catch handles this nicely, although I'm not found of those methods.

As far as I'm concerned you can close this one down also.

Thanks.
Nov 9, 2010
Project Member #4 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Fixed
Jul 17, 2012
Project Member #5 moo...@wwwendt.de
considered verified
Status: Verified

Powered by Google Project Hosting