[richfaces-svn-commits] JBoss Rich Faces SVN: r2554 - trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Aug 28 18:54:34 EDT 2007


Author: nbelaevski
Date: 2007-08-28 18:54:34 -0400 (Tue, 28 Aug 2007)
New Revision: 2554

Modified:
   trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
Log:
http://jira.jboss.com/jira/browse/RF-749

Modified: trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
===================================================================
--- trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js	2007-08-28 21:48:48 UTC (rev 2553)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js	2007-08-28 22:54:34 UTC (rev 2554)
@@ -43,12 +43,12 @@
 	},
 	
 	onup: function(event) {
-		this.endDrag();
+		this.endDrag(event);
 	},
 	
-	endDrag: function() {
+	endDrag: function(event) {
 		this.deactivate();
-		this.callback();
+		this.callback(event);
 	},	
 	
 	deactivate: function() {
@@ -148,10 +148,10 @@
 			if (!this.endDragListener) {
 				this.dragTrigger = this.moveDrag.bindAsEventListener(this);
 			
-				this.endDragListener = new DnD.DragEndListener(function() {
+				this.endDragListener = new DnD.DragEndListener(function(localEvent) {
 	
 					Event.stopObserving(document, "mousemove", this.dragTrigger);
-					this.endDrag(event, window.drag);
+					this.endDrag(localEvent, window.drag);
 	
 				}.bind(this));
 			}




More information about the richfaces-svn-commits mailing list