Results 1 to 2 of 2

Thread: is there a way to query an object for its supported events?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    439
    Vote Rating
    7
      0  

    Default is there a way to query an object for its supported events?

    e.g:
    var myComp, //say its an instance of continer
    myComp.getEventNames();//returns ['painted','activate',...]
    thanks.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    There isn't a solid way to no. The events aren't added to the component in any way, they are just fired.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

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