| 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 |
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
Nov 7, 2010
(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
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
(No comment was entered for this change.)
Status:
Fixed
Jul 17, 2012
considered verified
Status:
Verified
|
Labels: Milestone-Release0.5.5