| Page 1 of 1 | [ 3 posts ] |
|
Hi,
using the bubbling library, you can caputre events at a high level. Consider the case window.A = function () { this.b = new window.B(); } window.B = function() { } var k = new A(); now if A subscribes to a behaviour before the instantiation of b, the instance of A gets notified first. Is there any way to modify it apart from changing the order in which the events are subscribed? |
|
Hello Jiraaya,
Bubbling uses YUI Custom Event for each layer (even name), and you can not change the order. So, my question is: Why do you need to change the order? Can you explain your use-case, probably we can help you to re-design it. Best Regards, Caridy |
|
Hi Caridy,
Im just playing with your library. I found in your blog at this link http://www.yuiblog.com/blog/2007/09/13/ ... by-caridy/ some comment about the order of execution that you mentioned as a disadvantage in your pattern. Im aware that it would be a bad practise to change the order in which something is done. Was just curious. |
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group