this.elements.each(function(el, i){ this.bound.start[i] = this.start.bindWithEvent(this, el); if (this.options.ghost){ this.trash = new Element('div').injectInside(document.body); var limit = this.list.getCoordinates(); this.drag[i] = new Drag.Base(el, { handle: this.handles[i], snap: this.options.snap, modifiers: {y: 'top'}, limit: {y: [limit.top, limit.bottom - el.offsetHeight]}, onBeforeStart: function(element){ var offsets = element.getPosition(); this.old = element; this.drag[i].element = this.ghost = element.clone().setStyles({ 'position': 'absolute', 'top': offsets.y + 'px', 'left': offsets.x + 'px' }).injectInside(this.trash); this.fireEvent('onDragStart', [el, this.ghost]); }.bind(this), onComplete: function(element){ this.drag[i].element = this.old; this.fireEvent('onDragComplete', [el, this.ghost]); }.bind(this) }); } this.handles[i].addEvent('mousedown', this.start.bindWithEvent(this, el)); 
this.handles.each(function(handle, i){ handle.addEvent('mousedown', this.bound.start[i]); 
		this.elements.each(function(el, i){			this.bound.start[i] = this.start.bindWithEvent(this, el);			if (this.options.ghost){				this.trash = new Element('div').injectInside(document.body);				var limit = this.list.getCoordinates();				this.drag[i] = new Drag.Base(el, {					handle: this.handles[i],					snap: this.options.snap,					modifiers: {y: 'top'},					limit: {y: [limit.top, limit.bottom - el.offsetHeight]},					onBeforeStart: function(element){						var offsets = element.getPosition();						this.old = element;						this.drag[i].element = this.ghost = element.clone().setStyles({							'position': 'absolute',							'top': offsets.y + 'px',							'left': offsets.x + 'px'						}).injectInside(this.trash);						this.fireEvent('onDragStart', [el, this.ghost]);					}.bind(this),					onComplete: function(element){						this.drag[i].element = this.old;						this.fireEvent('onDragComplete', [el, this.ghost]);					}.bind(this)				});			}			this.handles[i].addEvent('mousedown', this.start.bindWithEvent(this, el));		}, this);
9494	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9494/e83867926a995b2d535c2207028d7151d6df4429/Sortables.js/clean/Plugins/Sortables.js