Metadata
- Source
- FLUID-5663
- Type
- Bug
- Priority
- Major
- Status
- Closed
- Resolution
- Fixed
- Assignee
- Antranig Basman
- Reporter
- Colin Clark
- Created
2015-05-11T20:25:28.989-0400 - Updated
2016-07-08T08:46:18.330-0400 - Versions
-
- 2.0
- Fixed Versions
- N/A
- Component
-
- Framework
Description
Using the compact listener syntax, some cases of malformed expressions don't cause an error to be reported.
For example, I had an invalid listener expression like this:
listeners: {
onReady: [
"aconite.animator.setStageColor({glRenderer}.gl), {animator}.options.stageBackgroundColor",
]
}
I had added a second argument to the listener, but accidentally placed it after the closing round "invocation bracket." The code ran without error or warning, and when my listener was invoked it was provided with only the first argument.
Presumably the framework should raise an error if the closing bracket isn't the last character in the compact listener.