incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r485214 - /incubator/xap/trunk/src/xap/bridges/xap/ListBoxBridge.js
Date Sun, 10 Dec 2006 16:39:04 GMT
Author: mturyn
Date: Sun Dec 10 08:39:04 2006
New Revision: 485214

URL: http://svn.apache.org/viewvc?view=rev&rev=485214
Log:
Fixing event sending that can be listened to by a parent combo box---internally understood
null
events to mean something in particular, but other objects had no idea what this meant, so
now we 
create a fake event object other objects can grab and use.

Modified:
    incubator/xap/trunk/src/xap/bridges/xap/ListBoxBridge.js

Modified: incubator/xap/trunk/src/xap/bridges/xap/ListBoxBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/xap/ListBoxBridge.js?view=diff&rev=485214&r1=485213&r2=485214
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/xap/ListBoxBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/xap/ListBoxBridge.js Sun Dec 10 08:39:04 2006
@@ -122,7 +122,7 @@
 	// We should always use "onChange" to reset values
 	// to make sure values are propagated upwards if this
 	// is pwned by a ComboBoxBridge
-	this.onChange( null ) ;
+	this.onChange( this.fakeDomEvent() ) ;
 
 }
 
@@ -163,9 +163,14 @@
 		this.getPeer().setSelectMultiple(false);
 		this.writeBackAttribute("selectionMode","single") ;		
 		// We might have trimmed nodes at this point, so set an onChange
-		this.onChange(null);
+		this.onChange( this.fakeDomEvent() );
 	}
 }
+
+xap.bridges.xap.ListBoxBridge.prototype.fakeDomEvent = function(){	
+	return {target:this.getPeer().select,originalTarget:this.getPeer().select}
+}	
+
 
 xap.bridges.xap.ListBoxBridge.prototype.setColorAttribute = function(value){
 	this.getPeer().setColor( value ) ;



Mime
View raw message