JooseX.Observable.Event - An event in Observable pattern
Class('My.Class', {
does : JooseX.Observable
})
var instance = new My.Class()
var handler = function (event, param1, param2) {
// event.source == instance
// param1 == 'foo'
// param2 == 'bar'
}
instance.on('event', handler, scope, { single : true, delay : 100 })
instance.fireEvent('event', 'foo', 'bar')
String name
Full name of the event.
Array args
Array with the arguments for this event.
Object source
The instance, which emitted this event
Object current
The instance, which is currently propagating the event (during bubbling)
String splat
The value for the
*
wildcard
Array[String] splat
The values for the
**
wildcard
stopPropagation()
Prevents further bubbling for this event
This extension is supported via github issues tracker: http://github.com/SamuraiJack/JooseX-Observable/issues
For general Joose questions you can also visit #joose on irc.freenode.org or mailing list at: http://groups.google.com/group/joose-js
Web page of this module: http://github.com/SamuraiJack/JooseX-Observable/
General documentation for Joose: http://joose.github.com/Joose/
All complex software has bugs lurking in it, and this module is no exception.
Please report any bugs through the web interface at http://github.com/SamuraiJack/JooseX-Observable/issues
Nickolay Platonov nplatonov@cpan.org
This software is Copyright (c) 2010 by Nickolay Platonov.
This is free software, licensed under:
The GNU Lesser General Public License, Version 3, June 2007