Josh Tynjala created FLEX-35194:
-----------------------------------

             Summary: [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


"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)

Reply via email to