rob-murray / ui-message-queue

User Interface Message Queue Javascript implementation
http://rob-murray.github.io/ui-message-queue/
Other
24 stars 4 forks source link

Additional argument for element id upon queue push #10

Open corticalstack opened 10 years ago

corticalstack commented 10 years ago

Hi,

What's your thoughts on enabling additional argument for specifying DOM element ID upon message push, as I have a need to funnel messages to different display elements.

Thanks.

rob-murray commented 10 years ago

Hi, I am thinking of looking at the queue 'message' and I think in it's simplest form that's fine but I'm also thinking about allowing a callback function to be passed. This would allow you to do whatever you want, be it update a different DOM element or call some other object.

In review!