Skip to content

inisic/CEvent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

CEvent

jQuery custom event wrapper class.

Usage:

var Event = new Utils.CEvent("somenamespace"); 

//or: var Event = new Utils.CEvent("somenamespace", $(<target-selector>));

Event.subscribe("sometopic", function (e, params) { 
	console.log("callback");
	console.log(params);		
	console.log(e.namespace);
	console.log(this);
});

Event.publish("sometopic", [{"a":"1"}, "b"]);

Event.unsubscribe("sometopic");	


```

About

jQuery custom event wrapper class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published