You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2017/02/08 12:12:41 UTC
[jira] [Updated] (FLEX-35259) [FlexJS] Uncaught TypeError is not a
function
[ https://issues.apache.org/jira/browse/FLEX-35259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean updated FLEX-35259:
---------------------------------
Attachment: PanelText.mxml
MyPanel.mxml
Panel.mxml
Main.mxml
> [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
> Attachments: Main.mxml, MyPanel.mxml, Panel.mxml, PanelText.mxml
>
>
> 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)