1. #11
    Sencha User renku's Avatar
    Join Date
    Feb 2009
    Location
    Estonia
    Posts
    437
    Vote Rating
    17
    renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold

      0  

    Default


    Quote Originally Posted by steffenk View Post
    Why is your morale like this?
    I recommended using events instead, because all this functionality is already implemented by the Observable class. I think of createSequence() and createInterceptor() as more of an utility functions - useful for doing something simple.

    At least with all the use cases I can think of, I would use events instead.

  2. #12
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    56
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    You're implementing events!

    Add an event to your class.

  3. #13
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,664
    Vote Rating
    7
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    And what's with the usecase of monitoring events like i did above? Ok, not a application usecase, but useful anyway.
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  4. #14
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    56
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    You can interrogate your events, see what listeners there are.

    Your usecase of inserting logic at a certain point, but then removing it is what the concept of events and listeners were designed for.

Thread Participants: 2