5 Replies Latest reply on Jun 16, 2009 3:09 PM by dzeikei

    Array Collection change watchers/event listeners not working?

    CDawsonChicago

      Here's a code snippet from my setter for _dataProvider:

       

      if( watchDog != null )
          watchDog.unwatch();
                     
      if( _dataProvider == null )
          _dataProvider = new ArrayCollection();
                         
      //_dataProvider.removeEventListener(CollectionEvent.COLLECTION_CHANGE, changeWatcherChange);
      _dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE, collectionEventChange);
                     
      watchDog = ChangeWatcher.watch(this,"_dataProvider", changeWatcherChange);   
      watchDog = ChangeWatcher.watch(this._dataProvider,"source", changeWatcherChange);
                     
      _dataProvider = value;

       

      ...

       

       

       

      ....now at the end, I'm setting my _dataProvider to a value, so any one of those Change Watchers, or the event listener AT LEAST, should fire off. But none of them do and I'm gonna pull my hair out! Any help here??

       

      Thanks, C