flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (FLEX-35257) [FlexJS] uncaught reference error on known function
Date Wed, 08 Feb 2017 06:32:42 GMT

     [ https://issues.apache.org/jira/browse/FLEX-35257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alex Harui reassigned FLEX-35257:
---------------------------------

    Assignee: Alex Harui

>  [FlexJS] uncaught reference error on known function
> ----------------------------------------------------
>
>                 Key: FLEX-35257
>                 URL: https://issues.apache.org/jira/browse/FLEX-35257
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FlexJS
>    Affects Versions: Apache FlexJS 0.7.0
>            Reporter: Justin Mclean
>            Assignee: Alex Harui
>            Priority: Minor
>         Attachments: Main.mxml, Panel.mxml
>
>
> The attached code when run gives this uncaught error:
> {code}
> EventDispatcher.js:70 Uncaught ReferenceError: callback is not defined
>     at Main.initialise (Main.js:79)
>     at Main.$EH0 (Main.js:97)
>     at Main.goog.events.EventTarget.fireListeners (eventtarget.js:284)
>     at Function.goog.events.EventTarget.dispatchEventInternal_ (eventtarget.js:381)
>     at Main.goog.events.EventTarget.dispatchEvent (eventtarget.js:196)
>     at Main.org.apache.flex.events.EventDispatcher.dispatchEvent (EventDispatcher.js:67)
>     at Main.org.apache.flex.core.ElementWrapper.dispatchEvent (ElementWrapper.js:214)
>     at Main.org.apache.flex.core.Application.initialize (Application.js:80)
>     at Main.org.apache.flex.core.Application.start (Application.js:279)
>     at index.html:78
> Main.initialise @ Main.js:79
> Main.$EH0 @ Main.js:97
> goog.events.EventTarget.fireListeners @ eventtarget.js:284
> goog.events.EventTarget.dispatchEventInternal_ @ eventtarget.js:381
> goog.events.EventTarget.dispatchEvent @ eventtarget.js:196
> org.apache.flex.events.EventDispatcher.dispatchEvent @ EventDispatcher.js:67
> org.apache.flex.core.ElementWrapper.dispatchEvent @ ElementWrapper.js:214
> org.apache.flex.core.Application.initialize @ Application.js:80
> org.apache.flex.core.Application.start @ Application.js:279
> (anonymous) @ index.html:78
> {code}
> This can be fixed by change the code to:
> {code}
>         public function initialise():void
>         {
>           panel.callback = this.callback;
>         }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message