Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: How to remove an Interceptor or a sequence

  1. #11
    Sencha User renku's Avatar
    Join Date
    Feb 2009
    Location
    Estonia
    Posts
    437
    Vote Rating
    17
      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
    Bédoin/Redwood City
    Posts
    30,644
    Vote Rating
    62
      0  

    Default

    You're implementing events!

    Add an event to your class.
    Longtime Sencha geek. Outspoken advocate of pure Javascript Views. Posts my own opinions.

  3. #13
    Sencha Premium Member steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,676
    Vote Rating
    9
      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
    Bédoin/Redwood City
    Posts
    30,644
    Vote Rating
    62
      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.
    Longtime Sencha geek. Outspoken advocate of pure Javascript Views. Posts my own opinions.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •