My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 112: Remove Function Errors under Persistence and First and only child node is removed
1 person starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  ----
Closed:  Sep 2009


 
Reported by cdwil...@gmail.com, Aug 7, 2009
What steps will reproduce the problem?
1. Enable persistence
2. Expand node to view child node
3. Remove single child node that is expanded.


What version of the product are you using? .5
On what operating system and browser? xp ie7

Node is removed as expected, but persistence tries to re-expand node after 
all child nodes were removed.
Simply change...  approx line 719 error goes away.
This is obviously due to persistence trying to expand the child node that 
was selected to be removed.

		var fxDuration = opts.fx ? (opts.fx.duration || 200) : 0;
		for(var i=0; i<this.childList.length; i++ ) {
			var $child = $(this.childList[i].div);
			if( fxDuration ) {
				// This is a toggle, so only do it, if not 
already rendered (in)visible ( issue 98 )
				if( bExpand != $child.is(':visible') )
					$child.animate(opts.fx, 
fxDuration);
			} else {
				if( bExpand )
					$child.show();
				else
					$child.hide(); // TODO: this seems 
to be slow, when called the first time for an element
			}
		}		




TO

		var fxDuration = opts.fx ? (opts.fx.duration || 200) : 0;
		if (this.childList)
			{
			for(var i=0; i<this.childList.length; i++ ) {
				var $child = $(this.childList[i].div);
				if( fxDuration ) {
					// This is a toggle, so only do 
it, if not already rendered (in)visible ( issue 98 )
					if( bExpand != $child.is
(':visible') )
						$child.animate(opts.fx, 
fxDuration);
				} else {
					if( bExpand )
						$child.show();
					else
						$child.hide(); // TODO: 
this seems to be slow, when called the first time for an element
				}
			}
		}
		
Please provide any additional information below.

Aug 16, 2009
Project Member #1 moo...@wwwendt.de
Thanks, this should be fixed in 0.5.1.
Can you confirm?
Status: Accepted
Labels: Milestone-Release0.5.1
Sep 2, 2009
Project Member #2 moo...@wwwendt.de
no feedback given; closing this as 'fixed'
Status: Fixed
Jul 17, 2012
Project Member #3 moo...@wwwendt.de
considered verified
Status: Verified

Powered by Google Project Hosting