Design Patterns for Coordinating Change Event Listeners

Posted by mkraken on Programmers See other posts from Programmers or by mkraken
Published on 2012-04-21T02:34:59Z Indexed on 2012/06/20 15:25 UTC
Read the original article Hit count: 291

I've been working with the Observer pattern in JavaScript using various popular libraries for a number of years (YUI & jQuery). It's often that I need to observe a set of property value changes (e.g. respond only when 2 or more specific values change). Is there a elegant way to 'subscribe' the handler so that it is only called one time? Is there something I'm missing or doing wrong in my design?

© Programmers or respective owner

Related posts about JavaScript

Related posts about design-patterns