                 return "toggleTextButton" + (name ? " " + name : "");
         }
         
+        COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+        {
+            super.createElement();
+            element.addEventListener("click", clickHandler, false);
+            return element;
+        }
         
+        COMPILE::JS
+        private function clickHandler(event:Event):void
+        {
+            selected = !selected;
+        }
 	}
 }

         */
        public function set selected(value:Boolean):void
        {
            IToggleButtonModel(model).selected = value;
        }
        
        /**

		public function ToggleTextButton()
		{
			super();
            COMPILE::JS
            {
                this.typeNames = 'toggleTextButton';
            }
		}
        
        COMPILE::JS
        private var _selected:Boolean;
        
        COMPILE::JS
        private var SELECTED:String = "selected";
        
        /**
         *  <code>true</code> if the Button is selected.
