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 jm...@apache.org on 2007/10/03 01:22:02 UTC
svn commit: r581464 -
/incubator/xap/trunk/codebase/src/xap/widgets/ListItem.js
Author: jmargaris
Date: Tue Oct 2 18:22:01 2007
New Revision: 581464
URL: http://svn.apache.org/viewvc?rev=581464&view=rev
Log:
simplification
Modified:
incubator/xap/trunk/codebase/src/xap/widgets/ListItem.js
Modified: incubator/xap/trunk/codebase/src/xap/widgets/ListItem.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/widgets/ListItem.js?rev=581464&r1=581463&r2=581464&view=diff
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/widgets/ListItem.js (original)
+++ incubator/xap/trunk/codebase/src/xap/widgets/ListItem.js Tue Oct 2 18:22:01 2007
@@ -18,39 +18,19 @@
*/
Xap.provide("xap.widgets.ListItem");
-Xap.require("dojo.widget.HtmlWidget");
-//IMPORTANT move this to some shared area
-dojo.widget.manager.registerWidgetPackage("xap.widgets");
-dojo.widget.tags.addParseTreeHandler("dojo:ListItem");
xap.widgets.ListItem = function(){
- dojo.widget.HtmlWidget.call(this);
+ this.domNode = new Option();
}
-dojo.inherits(xap.widgets.ListItem, dojo.widget.HtmlWidget);
-
dojo.lang.extend(xap.widgets.ListItem, {
- templateString: null,
- templateCssPath: null,
- widgetType: "ListItem",
- isContainer: true,
-
- //the peer object here is not an html dom node but
- //an actual Option object. This is because removing/adding
- //domNodes from a select does not work well overall
- postCreate: function(){
- this.domNode = new Option();
- },
-
setSelected: function( value ) {
this.domNode.selected = value;
},
isSelected: function(){
return this.domNode.selected?true:false ;
- },
-
- handler: null
+ }
}
);