Skip to content

navisoftware/broadcast.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

broadcast.js

事件注册,广播

统一的事件管理中心

示例

var broadcast = require("./broadcast.js");

broadcast.on("testEvent", function(data, event) {
	console.log(event); // test
	console.log(data); // [1,2,3]
});
broadcast.fire("testEvent", [1,2,3]);

安装

推荐使用bower

bower install https://github.com/binnng/broadcast.js.git

也可以下载直接使用。

About

事件注册,广播

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 100.0%