jQsafi / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

logWarning failures in _reloadAjax function when onPostInit set and success/error functions also set via initAjax object #140

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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...");

Original issue reported on code.google.com by cfhdista...@gmail.com on 31 Mar 2010 at 8:25

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 10 Apr 2010 at 2:48

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 5 May 2010 at 5:57

GoogleCodeExporter commented 9 years ago
considered verified

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:12