Justin Mclean created FLEX-35259:
------------------------------------
Summary: [FlexJS] Uncaught TypeError is not a function
Key: FLEX-35259
URL: https://issues.apache.org/jira/browse/FLEX-35259
Project: Apache Flex
Issue Type: Bug
Components: FlexJS
Affects Versions: Apache FlexJS 0.7.0
Reporter: Justin Mclean
Using the current nightly FlexJS nightly the attached code gives this error
when you click on the button.
Uncaught TypeError: this.callback is not a function
at Panel.clicked (Panel.js:58)
at Panel.$EH0 (Panel.js:68)
at Function.goog.events.fireListener [as googFireListener] (events.js:728)
at Object.org.apache.flex.core.ElementWrapper.fireListenerOverride [as
fireListener] (ElementWrapper.js:41)
at HTMLButtonElement.goog.events.handleBrowserEvent_ (events.js:852)
at HTMLButtonElement.<anonymous> (events.js:277)
This error occurs if you do this:
{code}
<local:Panel id="loginPanel" callback="{callback}"/>
{code}
Or this:
{code}
<local:Panel id="loginPanel" callback="{this.callback}"/>
{code}
The Flex SDK equivalent works as expected (also attached).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)