为什么在使用过滤器函数过滤了一个数组集合之后,没有调用dataprovider的setter
||
我正在使用这个:
private var _hrInfoView:ArrayCollection;
[Bindable]
public function get HRInfoView():ArrayCollection
{
return _hrInfoView;
}
public function set HRInfoView(value:ArrayCollection):void
{
_hrInfoView = value;
}
private function onFilterByContent(event:ContextMenuEvent):void
{
HRInfoView.filterFunction = processFilter;
HRInfoView.refresh();
//Break point here shows HRInfoView as different what is in line above. Why is setter not called?
}
当我在HRInfoView的setter上放置断点时,它永远不会被击中(当我在监视表达式中可以清楚地看到HRInfoView在过滤前后发生了变化)!为什么?
谢谢。
没有找到相关结果
已邀请:
3 个回复
墩瓣茅械
嫩昧竞莫
孤捷侩
和
都在调用getter以获取
,然后从中调用函数或属性。