src/accordion.js
function update(){
			var y      = 0;
			var height = 0;
			var i      = 0;
			var l      = folds.length;
			var parentFold = THIS.parentFold;
			var fold, diff;
			
			for(; i < l; ++i){
				fold   = folds[i];
				fold.y = y;
				fold.fit();
				y      += fold.height;
				height += fold.height;
			}
			
			diff = height - _height;
			parentFold
				? (parentFold.open && THIS.parent.updateFold(parentFold, diff))
				: edgeCheck(diff);
			
			THIS.height = height;
		}
function update(){
			var y      = 0;
			var height = 0;
			var i      = 0;
			var l      = folds.length;
			var parentFold = THIS.parentFold;
			var fold, diff;
			
			for(; i < l; ++i){
				fold   = folds[i];
				fold.y = y;
				fold.fit();
				y      += fold.height;
				height += fold.height;
			}
			
			diff = height - _height;
			parentFold
				? (parentFold.open && THIS.parent.updateFold(parentFold, diff))
				: edgeCheck(diff);
			
			THIS.height = height;
		}
function update ( ) { var y = 0 ; var height = 0 ; var i = 0 ; var l = folds . length ; var parentFold = THIS . parentFold ; var fold , diff ; for ( ; i < l ; ++ i ) { fold = folds [ i ] ; fold . y = y ; fold . fit ( ) ; y += fold . height ; height += fold . height ; } diff = height - _height ; parentFold ? ( parentFold . open && THIS . parent . updateFold ( parentFold , diff ) ) : edgeCheck ( diff ) ; THIS . height = height ; }
Update the height of each fold to fit its content.
Update the height of each fold to fit its content .