禁用 Flex 运行时绑定警告
我在模型中获取 XML 类型变量,并与 ActionScript 代码中的组件属性进行绑定。如果它无法绑定 XML 本身的子节点或其他同级属性,并且我不希望 Eclipse 显示这些运行时警告,那就完全没问题!
我确实使用“-show-binding-warnings=false”抑制了 Flex 编译器中的警告,但这似乎不适用于运行时绑定警告。
警告:无法绑定到属性<'某个节点名称'>在“XML”类上(类不是 IEventDispatcher)
I am taking XML-type variables in a model and binding with component properties in ActionScript code. It's perfectly fine if it's unable to bind the child nodes or other sibling properties of the XML itself and I don't want Eclipse to display these runtime warnings!
I did suppress warnings in Flex compiler using "-show-binding-warnings=false", but that does not seem to be working for runtime binding warnings.
warning: unable to bind to property <'some node name'> on class 'XML' (class is not an IEventDispatcher)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
-show-binding-warnings=false
选项仅适用于编译时绑定警告,它不会影响运行时警告。为了改变这种行为,有必要编辑框架本身。
已向 Adobe 报告此情况,他们考虑将其扩展以涵盖运行时警告,但最新的更新(2010 年 12 月)是:
The
-show-binding-warnings=false
option is only for compile time binding warnings, it won't affect runtime warnings.In order to change this behaviour it would be necessary to edit the framework itself.
This was reported to Adobe and they considered extending it to also cover the runtime warnings, but the latest update (in December 2010) was: