Skip to content

An event manager with a queue and priority written in JS

License

Notifications You must be signed in to change notification settings

ermiaqasemi/queue-event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

queue-event

=======

Queue-Event is an event manager for Javascript and JSX which supports queues and priority.

Usage

<script src="queue-event.js"></script>

<script>
	var EventManager = new QueueEvent();

	EventManager.addListener('after_apply_point',10,function(param1,param2){
		alert(param1);
		alert(param2);
	})
	EventManager.addListener('after_apply_point',1,function(){
		alert(2);
	})

	EventManager.addListener('before_apply_point',10,function(){
		alert(3);
	})

	EventManager.addListener('before_apply_point',10,function(){
		alert(4);
	})

	EventManager.addListener('before_apply_point',11,function(){
		alert(1);
	})

	EventManager.fire('after_apply_point',[101,102]);
	EventManager.fire('before_apply_point');
</script>

About

An event manager with a queue and priority written in JS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published