| Issue 140: | logWarning failures in _reloadAjax function when onPostInit set and success/error functions also set via initAjax object | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. Initialize any tree with an onPostInit function set and initAjax
specifies an object with a success or error handler
What is the expected output? What do you see instead?
Scripts errors out with following error in FireBug when hitting _reloadAjax():
this.tree is undefined
this.tree.logWarning("initAjax: success callback is ignored when onPostInit
was specified.");
What version of the product are you using?
0.5.3
On what operating system and browser?
FF 3.6/Mac
Please provide any additional information below.
I've tweaked
Line 1542:
this.tree.logWarning("initAjax: success callback is ignored when onPostInit
was specified.");
and Line 1544:
this.tree.logWarning("initAjax: error callback is ignored when onPostInit
was specified.");
and locally removed the .tree object reference, calling the logging
functions directly on 'this' which is the appropriate object context and
all is well again.
The other logging calls in the same function are ok:
this.logDebug("Dynatree._init(): send Ajax request...");
May 4, 2010
(No comment was entered for this change.)
Status:
Fixed
Jul 17, 2012
considered verified
Status:
Verified
|
Labels: Milestone-Release0.5.4