Skip to content

s-larionov/jquery-eventemitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Licence

Liscensed under the BSD License (BSD-LICENSE.txt)

Examples of use:

var MyObject = function(/* ... */) {
	/* ... */
};
$.EventEmitter.applyTo(MyObject);
MyObject.prototype.method = function() {
	/* ... */
	this.trigger('method', ['foo', 'bar']);
	/* ... */
};

/* ... */

var obj = new MyObject();
obj.bind('method', function(a, b) {
	console.log(a); // 'foo'
	console.log(b); // 'bar'
};

About

EventEmitter for JavaScript (used jQuery)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages