Skip to content

marexandre/EventDispatcher.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

EventDispatcher.js

	// CarBase Klass or something, add EventDispatcher functionality to it.
	var CarBase = Object.create( EventDispatcher );
	// add CarBase specific functionality
	CarBase.start = function() {
	    console.log('car start');
	}
	
	
	// 
	var carA = Object.create( CarBase );
	carA.on('start', function() {
	    carA.start();
	});
    carA.fire('start');

About

Simple EventDispatcher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published