pcirella / dynatree

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

Empty Child List gives error in case of lazy loading #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In case of using lazy loading feature of the dynatree if user tries to retrieve 
the child nodes by expanding a node, then in case of empty child list it throws 
javascript error.

As per our analysis this error is coming because in appendAjax function code is 
trying to render the empty child list. Which should not have been done as there 
is nothing to render.

A similar bug was reported or fixed in error # 164 but it looks like it haven't 
taken care of all the possible scenarios.

if($.isArray(data) && data.length === 0){
self.childList = [];
self.render();
}

the line self.render shouldn't have been their or rendering would have handled 
this scenario.

Original issue reported on code.google.com by purusott...@gmail.com on 13 Jan 2011 at 10:23

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 14 Jan 2011 at 6:58

GoogleCodeExporter commented 9 years ago
This is probably the same cause as #168

Original comment by moo...@wwwendt.de on 14 Jan 2011 at 7:16

GoogleCodeExporter commented 9 years ago
Initially even I assumed that it is same as #168 and it should have been taken 
care in version 1.0.2. We downloaded the version 1.0.3 and we faced this 
problem in case of empty response received in AJAX Response. Probably whatever 
changes were done for #168 didn't take care of thus issue.

Original comment by purusott...@gmail.com on 17 Jan 2011 at 7:38

GoogleCodeExporter commented 9 years ago
The fix for #168 was made for 1.0.4, which is not released, but available in 
the trunk

Original comment by moo...@wwwendt.de on 17 Jan 2011 at 11:59

GoogleCodeExporter commented 9 years ago
OK... Thanks for a quick clarification... 
We will wait for 1.0.4 release. 

One thing that i wanted to ask is that can I join this project as the 
contributor. As I feel that you have created a very good plug-in and I will be 
more then happy if I can help you with this plugin.

I am currently working as Technical Project Manager with Dallas Based company 
on Java/J2EE platform and have 6 years of experience in web development. I have 
been using jQuery and its various plugin for last 3 years.  

Original comment by purusott...@gmail.com on 17 Jan 2011 at 3:12

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 23 Jan 2011 at 8:44