bloody-jquery-plugins
bloody-jquery-plugins copied to clipboard
A Series of codes I ported to jQuery from Dojo
Adding a return value to the publish method allows callers to determine how many (if any) subscribers received the topic. This would aid debugging because publishers could take action in...
You can see where it errors here: http://jsfiddle.net/EG4CL/ This is happening due to the way jQuery's `each` method is implemented. In this case, jQuery caches the length property in the...
Add: - priority for subscribes, - too much check callable for publish - string as params to publish
Adapted for personal purposes, i just think it might be interesting to publish it. Kinda newbie on Github, i'm sorry if anything's weird.
regarding pubsub https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js I was recently trying to use this within a class, by subscribing and then the callback was "this.handlerMethod" but when I fired the pub, the method was...