Back out last change, it causes more problems than it solves
authorAndy Allan <gravitystorm@gmail.com>
Wed, 16 Feb 2011 12:25:22 +0000 (12:25 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Wed, 16 Feb 2011 12:25:22 +0000 (12:25 +0000)
net/systemeD/potlatch2/mapfeatures/editors/ChoiceEditor.mxml

index 43d6ff8..d43741d 100644 (file)
       <edit:itemRenderer>
         <mx:Component>
         <mx:HBox toolTip="{data.description}" horizontalScrollPolicy="off">
-          <!-- Use an object proxy to wrap calls to data.icon, otherwise you get a slew of binding warnings. Something to do
-                with it being passed through the dataProvider to an itemRenderer.
-                It's not clear whether this fixes the problem or just supresses the warnings!
-                see http://designovermatter.com/post.cfm/warning-unable-to-bind-to-property-somevar-on-object-object-class-is-not-an-ieventdispatcher -->
-          <mx:Script><![CDATA[
-            import mx.utils.ObjectProxy;
-
-            [Bindable]
-            public var dataProxy:ObjectProxy;
-
-            private function init():void {
-                dataProxy = new ObjectProxy(data);
-            }
-          ]]></mx:Script>
-          <mx:Image source="{dataProxy.icon}"/>
+          <mx:Image source="{data.icon}"/>
           <mx:Label htmlText="{data.label}"/>
         </mx:HBox>
         </mx:Component>