examples/template_stealjs/funcunit/syn/resources/jquery.event.drag.js
function( ev, element ) {
			var isLeftButton = ev.button === 0 || ev.button == 1;
			if (!isLeftButton || this.current ) {
				return;
			} //only allows 1 drag at a time, but in future could allow more
			//ev.preventDefault();
			//create Drag
			var drag = new $.Drag(),
				delegate = ev.liveFired || element,
				selector = ev.handleObj.selector,
				self = this;
			this.current = drag;

			drag.setup({
				element: element,
				delegate: ev.liveFired || element,
				selector: ev.handleObj.selector,
				moved: false,
				callbacks: {
					dragdown: event.find(delegate, ["dragdown"], selector),
					draginit: event.find(delegate, ["draginit"], selector),
					dragover: event.find(delegate, ["dragover"], selector),
					dragmove: event.find(delegate, ["dragmove"], selector),
					dragout: event.find(delegate, ["dragout"], selector),
					dragend: event.find(delegate, ["dragend"], selector)
				},
				destroyed: function() {
					self.current = null;
				}
			}, ev);
		}
function( ev, element ) {
			var isLeftButton = ev.button === 0 || ev.button == 1;
			if (!isLeftButton || this.current ) {
				return;
			} //only allows 1 drag at a time, but in future could allow more
			//ev.preventDefault();
			//create Drag
			var drag = new $.Drag(),
				delegate = ev.liveFired || element,
				selector = ev.handleObj.selector,
				self = this;
			this.current = drag;

			drag.setup({
				element: element,
				delegate: ev.liveFired || element,
				selector: ev.handleObj.selector,
				moved: false,
				callbacks: {
					dragdown: event.find(delegate, ["dragdown"], selector),
					draginit: event.find(delegate, ["draginit"], selector),
					dragover: event.find(delegate, ["dragover"], selector),
					dragmove: event.find(delegate, ["dragmove"], selector),
					dragout: event.find(delegate, ["dragout"], selector),
					dragend: event.find(delegate, ["dragend"], selector)
				},
				destroyed: function() {
					self.current = null;
				}
			}, ev);
		}
function ( ev , element ) { var isLeftButton = ev . button === 0 || ev . button == 1 ; if ( ! isLeftButton || this . current ) { return ; } //only allows 1 drag at a time, but in future could allow more //ev.preventDefault(); //create Drag var drag = new $ . Drag ( ) , delegate = ev . liveFired || element , selector = ev . handleObj . selector , self = this ; this . current = drag ; drag . setup ( { element : element , delegate : ev . liveFired || element , selector : ev . handleObj . selector , moved : false , callbacks : { dragdown : event . find ( delegate , [ "dragdown" ] , selector ) , draginit : event . find ( delegate , [ "draginit" ] , selector ) , dragover : event . find ( delegate , [ "dragover" ] , selector ) , dragmove : event . find ( delegate , [ "dragmove" ] , selector ) , dragout : event . find ( delegate , [ "dragout" ] , selector ) , dragend : event . find ( delegate , [ "dragend" ] , selector ) } , destroyed : function ( ) { self . current = null ; } } , ev ) ; }
Called when someone mouses down on a draggable object.
Gathers all callback functions and creates a new Draggable.
@hide
Called when someone mouses down on a draggable object . Gathers all callback functions and creates a new Draggable .