Changes between Initial Version and Version 1 of Ticket #15922, comment 6


Ignore:
Timestamp:
Sep 5, 2012, 7:34:52 AM (9 years ago)
Author:
cjolif
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15922, comment 6

    initial v1  
    1 ykami, I did see the test but as I said I think the handler should be passed into the ctor or markup which removes any need for setTimeout? If you really don't want to do that you can still listen the the /dojox/mobile/startView topic that is dispatched globally and thus can be registered outside of the ctor (pre-creation of the object). I don't think using setTimeout to allow to attach event listeners *post* their dispatching is a good practice even if that indeed can simply the life of users in some cases (but also create confusion on how things work).
     1ykami, I did see the test but as I said I think the handler should be passed into the ctor or markup which removes any need for setTimeout? If you really don't want to do that you can still listen the /dojox/mobile/startView topic that is dispatched globally and thus can be registered outside of the ctor (pre-creation of the object). I don't think using setTimeout to allow to attach event listeners *post* their dispatching is a good practice even if that indeed can simply the life of users in some cases (but also create confusion on how things work).
    22
    33That said I can buy the compatibility argument from edurocher. We actually do have another problem reported about onStartView ideally we should try to see if putting that back in fixes both reported issues.