rem: $A(elements).each(function(el, i){ var copy = $(el).clone().setStyles({ 'position': 'absolute', 'opacity': '0', 'display': 'none' }).injectInside(trash); var elEffect = el.effect('opacity', { duration: this.options.fxDuration, wait: false, transition: this.options.fxTransition }).set(1); var copyEffects = copy.effects({ duration: this.options.fxDuration, wait: false, transition: this.options.fxTransition, onComplete: function(){ copy.setStyle('display', 'none'); } }); var yMax = false; var yMin = false; if (this.options.contain){ yMax = $(el.parentNode).getTop()+el.parentNode.offsetHeight-el.offsetHeight; yMin = el.parentNode.getTop(); } var dragger = new Drag.Move(copy, { handle: this.options.handles[i], yMax: yMax, yMin: yMin, xModifier: false, onStart: function(){ this.options.onStart.bind(this).delay(10); copy.setHTML(el.innerHTML).setStyles({ 'display': 'block', 'opacity': this.options.maxOpacity, 'top': el.getTop()+'px', 'left': el.getLeft()+'px' }); elEffect.custom(elEffect.now, this.options.maxOpacity); }.bind(this), onComplete: function(){ this.options.onComplete.bind(this).delay(10); copyEffects.custom({ 'opacity': [this.options.maxOpacity, 0], 'top': [copy.getTop(), el.getTop()] }); elEffect.custom(elEffect.now, 1); }.bind(this), onDrag: function(){ if (el.getPrevious() && copy.getTop() < (el.getPrevious().getTop())) el.injectBefore(el.getPrevious()); else if (el.getNext() && copy.getTop() > (el.getNext().getTop())) el.injectAfter(el.getNext()); } }); 
add: selector.split(',').each(function(sel){ els.extend(this.getElements(sel)); 
context: 		$A(elements).each(function(el, i){			var copy = $(el).clone().setStyles({				'position': 'absolute',				'opacity': '0',				'display': 'none'			}).injectInside(trash);			var elEffect = el.effect('opacity', {				duration: this.options.fxDuration,				wait: false,				transition: this.options.fxTransition			}).set(1);			var copyEffects = copy.effects({				duration: this.options.fxDuration,				wait: false,				transition: this.options.fxTransition,				onComplete: function(){					copy.setStyle('display', 'none');				}			});			var yMax = false;			var yMin = false;			if (this.options.contain){				yMax = $(el.parentNode).getTop()+el.parentNode.offsetHeight-el.offsetHeight;				yMin = el.parentNode.getTop();			}			var dragger = new Drag.Move(copy, {				handle: this.options.handles[i],				yMax: yMax,				yMin: yMin,				xModifier: false,				onStart: function(){					this.options.onStart.bind(this).delay(10);					copy.setHTML(el.innerHTML).setStyles({						'display': 'block',						'opacity': this.options.maxOpacity,						'top': el.getTop()+'px',						'left': el.getLeft()+'px'					});					elEffect.custom(elEffect.now, this.options.maxOpacity);				}.bind(this),				onComplete: function(){					this.options.onComplete.bind(this).delay(10);					copyEffects.custom({						'opacity': [this.options.maxOpacity, 0],						'top': [copy.getTop(), el.getTop()]					});					elEffect.custom(elEffect.now, 1);				}.bind(this),				onDrag: function(){					if (el.getPrevious() && copy.getTop() < (el.getPrevious().getTop())) el.injectBefore(el.getPrevious());					else if (el.getNext() && copy.getTop() > (el.getNext().getTop())) el.injectAfter(el.getNext());				}			});		}, this);
meta: 3891	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3891/03c9c00aa7fdb2f2d8571e7665048da8759cf30a/mootools-uncompressed.js/buggy/includes/js/mootools-uncompressed.js