flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-35259) [FlexJS] Uncaught TypeError is not a function
Date Wed, 08 Feb 2017 12:09:41 GMT
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:
<local:Panel id="loginPanel" callback="{callback}"/>
Or this:
<local:Panel id="loginPanel" callback="{this.callback}"/>

The Flex SDK equivalent works as expected (also attached).

This message was sent by Atlassian JIRA

View raw message