 	import org.apache.flex.core.IBeadController;
 	import org.apache.flex.core.ISelectableItemRenderer;
 	import org.apache.flex.core.IStrand;
+COMPILE::AS3 {
 	import org.apache.flex.events.Event;
-    import org.apache.flex.events.MouseEvent;
+	import org.apache.flex.events.MouseEvent;
+}
+COMPILE::JS {
+	import org.apache.flex.core.UIBase;
+	import org.apache.flex.core.WrappedHTMLElement;
+	import org.apache.flex.events.BrowserEvent;
+	import goog.events.Event;
+	import goog.events.EventType;
+	import goog.bind;
+}
 
 	/**
 	 *  The ItemRendererMouseController class bead handles mouse events in itemRenderers. This

	 *  @playerversion Flash 10.2
	 *  @playerversion AIR 2.6
	 *  @productversion FlexJS 0.0
	 */
	public class ItemRendererMouseController implements IBeadController
	{

				target.dispatchEvent(new Event("selected"));
			}			
		}
		
		COMPILE::JS
		protected function handleMouseUp(event:BrowserEvent):void
		{
			var target:ISelectableItemRenderer = event.currentTarget as ISelectableItemRenderer;
			if (target)
			{
				target.selected = true;
				target.dispatchEvent(new Event("selected"));
			}
		}
	
	}
}
