What is the "App counter"?

Without taking Piotr's or your changes and just doing the changes below,
the click event counter increments as expected.

-Alex

diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/
RadioButton.as 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/
RadioButton.as
index 0366013..001c587 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/
RadioButton.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/
RadioButton.as
@@ -321,7 +321,7 @@ package org.apache.flex.mdl
             (icon.element as WrappedHTMLElement).flexjs_wrapper = this;
             (radio as WrappedHTMLElement).flexjs_wrapper = this;
 
-            element.addEventListener("click", clickHandler, false);
+            //element.addEventListener("click", clickHandler, false);
             
             return element;
         };
@@ -464,6 +464,15 @@ package org.apache.flex.mdl
                 }
             }
         }
+               
+               override public function addEventListener(type:String,
handler:Function, opt_capture:Boolean = false, opt_handlerScope:Object =
null):void
+               {
+                       if (type == "click")
+                               icon.element.addEventListener(type, handler, 
opt_capture);
+                       else
+                               super.addEventListener(type, handler, 
opt_capture, opt_handlerScope);
+               }
+               
         /**
          * @param e The event object.
          */


Reply via email to