-
15 Jan 2010 3:10 AM #1
Unanswered: One handler for several events?
Unanswered: One handler for several events?
Hallo!
Is there a short version for:
?Code:el.on({ 'click': handler, 'keydown': handler, 'someevent': handler })
For example:
Code:el.on('click keydown someevent',handler)
-
15 Jan 2010 3:15 AM #2Sencha - Ext JS Dev Team
- Join Date
- Mar 2007
- Location
- Notts/Redwood City
- Posts
- 30,459
- Vote Rating
- 18
- Answers
- 9
addListener does not go to the computational expense of splitting the event string on spaces, and iterating over the results.
You could add a wrapper to do this if you thought it worthwhile.
I'm not sure there is a large enough use case to justify it.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
15 Jan 2010 6:57 AM #3
Ok, it's clear. Thanks!


Reply With Quote