flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Tynjala (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-35192) [FalconJX] TypeError: Cannot read property 'apply' of undefined with subclass of <js:View>
Date Tue, 06 Dec 2016 18:35:58 GMT

    [ https://issues.apache.org/jira/browse/FLEX-35192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15726318#comment-15726318
] 

Josh Tynjala commented on FLEX-35192:
-------------------------------------

ContainerBase.js in bin/js-debug did not contain get__MXMLDescriptor. I deleted the bin directory
and rebuilt, and the correct version of ContainerBase.js appeared.

I know that there was a change to the compiler recently where the bin directory is no longer
deleted. Could it be that the compiler is failing to replace a file if it already exists in
bin?

> [FalconJX] TypeError: Cannot read property 'apply' of undefined with subclass of <js:View>
> ------------------------------------------------------------------------------------------
>
>                 Key: FLEX-35192
>                 URL: https://issues.apache.org/jira/browse/FLEX-35192
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FalconJX
>    Affects Versions: Apache FlexJS 0.8.0
>            Reporter: Josh Tynjala
>            Assignee: Alex Harui
>             Fix For: Apache FlexJS 0.8.0
>
>
> Main application:
> <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> 	xmlns:js="library://ns.apache.org/flexjs/basic"
> 	xmlns:local="*">
> 	<js:valuesImpl>
> 		<js:SimpleCSSValuesImpl/>
> 	</js:valuesImpl>
> 	<js:initialView>
> 		<local:ViewSubclass/>
> 	</js:initialView>
> </js:Application>
> ViewSubclass.mxml
> <js:View xmlns:fx="http://ns.adobe.com/mxml/2009"
> 	xmlns:js="library://ns.apache.org/flexjs/basic">
> 	<js:Label text="Hello World"/>
> </js:View>
> The following error is thrown
> "TypeError: Cannot read property 'apply' of undefined\n    at ViewSubclass.get (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/ViewSubclass.js:54:65)\n
   at ViewSubclass.org.apache.flex.core.ContainerBase.addedToParent (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/ContainerBase.js:173:99)\n
   at FlexJSBasics.org.apache.flex.core.Application.addElement (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:115:5)\n
   at FlexJSBasics.org.apache.flex.core.Application.initialize (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:265:8)\n
   at FlexJSBasics.org.apache.flex.core.Application.start (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:236:10)\n
   at file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/index.html:89:22"
> The error happens at the following line in the generated ViewSubclass.js:
> var arr = ViewSubclass.superClass_.get__MXMLDescriptor.apply(this);
> Perhaps the superClass_ doesn't have the getter, and it's further up the inheritance
chain?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message