You'd write model.dispatchevent( new
TextEvent(SEARCH_MACHINES, false, false, dgItems.selectedItem.machine)); But the SDK team considers the 3-line
approach better practice, because it makes clear which property is getting set
to what. If you have an event with a lot of properties, code like dispatchEvent(new
MyEvent(MY_EVENT_TYPE, false, false, 1, "foo", 19, 36, [ "bar"
], true, 2, { x: 99, y: 108 }) isn't very clear. - Gordon From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of boy_trike The signature for the TextEvent already HAS the text
property. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- [flexcoders] Re: Shortcut for creating and dispatching events boy_trike
- RE: [flexcoders] Re: Shortcut for creating and dispatchi... Gordon Smith