Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Cannot Reproduce
-
Apache FalconJX 0.8.0
-
None
Description
The FlexJS Alert component defines the following method:
static public function show( text:String, parent:Object, title:String="", flags:uint=Alert.OK ) : void
The final "flags" parameter is emitted like this:
flags = typeof flags !== 'undefined' ? flags : Alert.OK;
The constant should appear as org.apache.flex.html.Alert.OK instead.
The following runtime exception is thrown:
"ReferenceError: Alert is not defined\n at Function.org.apache.flex.html.Alert.show (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/html/Alert.js:137:50)\n at AlertBasics.onAlert1 (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/AlertBasics.js:105:30)\n at AlertBasics.$EH0 (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/AlertBasics.js:131:8)\n at Function.goog.events.fireListener [as googFireListener] (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/library/closure/goog/events/events.js:728:21)\n at Object.org.apache.flex.core.HTMLElementWrapper.fireListenerOverride [as fireListener] (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/HTMLElementWrapper.js:48:50)\n at HTMLButtonElement.goog.events.handleBrowserEvent_ (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/library/closure/goog/events/events.js:852:22)\n at HTMLButtonElement.<anonymous> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/library/closure/goog/events/events.js:277:38)"