Comments (2)
Does "breaks" means that the second event does not get dispatched?
Remember that you have to call the generator callback from your command when
you're done to signal the generator to dispatch the next event; that's how it
is supposed to work works.
The generator dispatches UMEvents which have a callbacks
property which must implement IResponder. IResponder has result and fault
methods which you use to signal that you are done with your command. If your
event generator is running in sequence (that's the default configuration), you
have to run one of these methods from your command when you're finished with
what you
were doing so that the EventGenerator can know that it can proceed with the
next event. It will wait (on purpose) for you to run it method.
What you did with your change was turning your sequenced generator into a
parallel generator that doesn't have to wait for the callbacks to be run in
order to dispatch the next event; all the events get dispatched on the same
frame. But to achieve that you should just change trigger property
from TRIGGER_SEQUENCE to TRIGGER_PARALLEL using the unchanged class.
Original comment by [email protected]
on 13 May 2008 at 3:23
from flexcairngorm.
Hi Gabriel,
regarding this event chaining question, I was wondering if
notifyCaller() could also be extended in order to handle the
callback to the EventGenerator from the command to trigger
the next event instead of doing event.callback.result().
The notifyCaller() would the notify views but also the eventgenerator
if a callback is available in the event...
What do you think?
Thanks for any answer.
Cédric
Original comment by [email protected]
on 5 Nov 2008 at 9:03
from flexcairngorm.
Related Issues (18)
- Copyright needs to be changed? HOT 2
- notifyCaller() will always pass an argument
- A throttle on EventGenerator.TRIGGER_PARALLEL
- ModuleControllers are not getting added as a subcontroller HOT 2
- EventGenerator sequence is null when set in a separate MXML component HOT 1
- setting a property as [Bindable] in a command creates error HOT 1
- [deleted issue]
- Unused param in EventGenerator.initialize() HOT 1
- Delegate example calls notifyCallers() instead of notifyCaller()
- ModuleController issue using addSubController()
- cairngorm 221 version of the store isn't downloadable, promps for a a password HOT 1
- Error when checking out code HOT 1
- Modification(s?) to com.adobe.cairngorm code HOT 3
- Method checkModuleType in FrontController HOT 3
- Where is the project owner's email address? How do I post questions?
- getNext() cannot trust __doneCounter so use a new __dispatchedCounter HOT 1
- ServiceLocator in modular apps? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flexcairngorm.