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-35194) [FlexJS] "TypeError: m is not a constructor" when creating <js:NumericStepper>
Date Tue, 06 Dec 2016 18:39:58 GMT

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

Josh Tynjala commented on FLEX-35194:
-------------------------------------

After deleting my bin directory and building from scratch, this error no longer occurs.

> [FlexJS] "TypeError: m is not a constructor" when creating <js:NumericStepper>
> ------------------------------------------------------------------------------
>
>                 Key: FLEX-35194
>                 URL: https://issues.apache.org/jira/browse/FLEX-35194
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FlexJS
>    Affects Versions: Apache FlexJS 0.8.0
>            Reporter: Josh Tynjala
>
> Code to reproduce:
> <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>
> 		<js:NumericStepper id="stepper" valueChange="trace(stepper.value)"
> 			minimum="0" maximum="10" stepSize="2"/>
> 	</js:initialView>
> </js:Application>
> Result:
> "TypeError: m is not a constructor\n    at org.apache.flex.html.Spinner.get (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/HTMLElementWrapper.js:244:60)\n
   at org.apache.flex.html.Spinner.get (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/html/Spinner.js:54:48)\n
   at org.apache.flex.html.NumericStepper.createElement (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/html/NumericStepper.js:72:40)\n
   at org.apache.flex.html.NumericStepper.org.apache.flex.core.UIBase [as constructor] (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/UIBase.js:49:8)\n
   at Function.childCtor.base (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/library/closure/goog/base.js:2434:45)\n
   at new org.apache.flex.html.NumericStepper (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/html/NumericStepper.js:32:39)\n
   at Function.org.apache.flex.utils.MXMLDataInterpreter.generateMXMLObject (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/utils/MXMLDataInterpreter.js:57:36)\n
   at Function.org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/utils/MXMLDataInterpreter.js:308:57)\n
   at FlexJSBasics.org.apache.flex.core.Application.generateMXMLAttributes (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:89:45)\n
   at new FlexJSBasics (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/FlexJSBasics.js:54:8)"
> The error occurs when the "iBeadModel" is instantiated  in HTMLElementWrapper.js in the
model property getter:
> var /** @type {Object} */ m = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this,
'iBeadModel');
> var /** @type {org.apache.flex.core.IBeadModel} */ b = new m();
> This error does not occur in FlexJS 0.7.0.



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

Mime
View raw message