You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2006/10/20 16:57:54 UTC

svn commit: r466201 - /incubator/xap/trunk/src/xap/bridges/dojo/TextAreaBridge.js

Author: mturyn
Date: Fri Oct 20 09:57:53 2006
New Revision: 466201

URL: http://svn.apache.org/viewvc?view=rev&rev=466201
Log:
Changed a piece of {mozilla object}-specific code into something IE wouldn't hate.

(Mouse events in IE don't have an 'explicitOriginalTarget' member.)

Modified:
    incubator/xap/trunk/src/xap/bridges/dojo/TextAreaBridge.js

Modified: incubator/xap/trunk/src/xap/bridges/dojo/TextAreaBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/dojo/TextAreaBridge.js?view=diff&rev=466201&r1=466200&r2=466201
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/dojo/TextAreaBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/dojo/TextAreaBridge.js Fri Oct 20 09:57:53 2006
@@ -70,8 +70,8 @@
 xap.bridges.dojo.TextAreaBridge.prototype.onSelect = function(event){
 // Defaults to "true":
 	if( this._selectable == "false" ){
-		event.explicitOriginalTarget.selectionStart		
-			= event.explicitOriginalTarget.selectionEnd
+		event.target.selectionStart		
+			= event.target.selectionEnd
 				= this.lastMouseDown ;
 
 		return false ;
@@ -82,7 +82,7 @@
 }
 
 xap.bridges.dojo.TextAreaBridge.prototype.onMousedown = function(event){
-	this.lastMouseDown = event.explicitOriginalTarget.selectionStart ;
+	this.lastMouseDown = event.target.selectionStart ;
 	this.onTextChange( event ) ;
 }