Open GoogleCodeExporter opened 9 years ago
As an example of code, instead of having:
default: _lastPage.visible = false;
_lastPage = null;
dispatchEvent(new Event(Event.CHANGE));
dispatchEvent(new Event(COMPLETE));
We'd have:
default: _lastPage.visible = false;
if (_lastPage.willTrigger(REMOVING))
_lastPage.dispatchEvent(new Event(REMOVING));
if (_lastPage.willTrigger(REMOVED))
_lastPage.dispatchEvent(new Event(REMOVED));
_lastPage = null;
if (_thisPage.willTrigger(Event.CHANGE))
_thisPage.dispatchEvent(new Event(Event.CHANGE));
if (_thisPage.willTrigger(COMPLETE))
_thisPage.dispatchEvent(new Event(COMPLETE));
I know it looks uglier at a first glance, but it allows more control over the
views lifecycle.
Original comment by neverbi...@gmail.com
on 23 Aug 2012 at 12:04
Original comment by doc.andr...@gmail.com
on 3 Sep 2012 at 2:50
Original issue reported on code.google.com by
neverbi...@gmail.com
on 22 Aug 2012 at 11:58