Issue 140: logWarning failures in _reloadAjax function when onPostInit set and success/error functions also set via initAjax object
Status:  Verified
Owner: ----
Closed:  May 2010
Reported by cfhdista...@gmail.com, Mar 31, 2010
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...");

Apr 10, 2010
Project Member #1 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Accepted
Labels: Milestone-Release0.5.4
May 4, 2010
Project Member #2 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Fixed
Jul 17, 2012
Project Member #3 moo...@wwwendt.de
considered verified
Status: Verified