eventproxy
Advanced tools
Comparing version 0.3.2 to 0.3.3
{ | ||
"name": "eventproxy", | ||
"main": "index.js", | ||
"version": "0.3.1", | ||
"version": "0.3.3", | ||
"homepage": "http://html5ify.com/eventproxy", | ||
@@ -6,0 +6,0 @@ "authors": [ |
@@ -5,3 +5,3 @@ { | ||
"description": "An implementation of task/event based asynchronous pattern.", | ||
"version": "0.2.5", | ||
"version": "0.3.3", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "event", |
@@ -10,3 +10,4 @@ /*global define*/ | ||
// AMD Module or CMD Module | ||
define(definition); | ||
define('eventproxy_debug', function () {return function () {};}); | ||
define(['eventproxy_debug'], definition); | ||
} else if (hasExports) { | ||
@@ -214,3 +215,4 @@ // Node.js Module | ||
var later = typeof process !== 'undefined' && process.nextTick || function (fn) { | ||
var later = (typeof setImmediate !== 'undefined' && setImmediate) || | ||
(typeof process !== 'undefined' && process.nextTick) || function (fn) { | ||
setTimeout(fn, 0); | ||
@@ -217,0 +219,0 @@ }; |
@@ -17,3 +17,3 @@ { | ||
"dependencies": { | ||
"debug": "0.7.4" | ||
"debug": "2.1.3" | ||
}, | ||
@@ -41,3 +41,3 @@ "devDependencies": { | ||
}, | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"main": "index.js", | ||
@@ -48,3 +48,7 @@ "directories": { | ||
}, | ||
"license": "MIT" | ||
"license": "MIT", | ||
"spm": { | ||
"main": "index.js", | ||
"ignore": ["test"] | ||
} | ||
} |
@@ -76,2 +76,8 @@ EventProxy [![Build Status](https://secure.travis-ci.org/JacksonTian/eventproxy.png)](http://travis-ci.org/JacksonTian/eventproxy) | ||
### [spm](http://spmjs.io/package/eventproxy) | ||
```bash | ||
$ spm install eventproxy | ||
``` | ||
### For browser | ||
@@ -78,0 +84,0 @@ Following examples direct resource address of Github, and you can also download [resource file](https://raw.github.com/JacksonTian/eventproxy/master/lib/eventproxy.js) to your own project. 500 lines in total including comments and blank lines. To ensure the easy integrate with your project, EventProxy doesn't provide the minified version. You can use Uglify, YUI Compressor or Google Closure Complier to compress it. |
@@ -1,2 +0,2 @@ | ||
EventProxy [![Build Status](https://secure.travis-ci.org/JacksonTian/eventproxy.png)](http://travis-ci.org/JacksonTian/eventproxy) [![NPM version](https://badge.fury.io/js/eventproxy.png)](http://badge.fury.io/js/eventproxy) [English Doc](https://github.com/JacksonTian/eventproxy/blob/master/README_en.md) | ||
EventProxy [![Build Status](https://secure.travis-ci.org/JacksonTian/eventproxy.png)](http://travis-ci.org/JacksonTian/eventproxy) [![NPM version](https://badge.fury.io/js/eventproxy.png)](http://badge.fury.io/js/eventproxy) [![spm package](http://spmjs.io/badge/eventproxy)](http://spmjs.io/package/eventproxy) [English Doc](https://github.com/JacksonTian/eventproxy/blob/master/README_en.md) | ||
====== | ||
@@ -76,2 +76,8 @@ | ||
### [spm](http://spmjs.io/package/eventproxy) | ||
```bash | ||
$ spm install eventproxy | ||
``` | ||
### Component | ||
@@ -140,3 +146,3 @@ | ||
var ep = new EventProxy(); | ||
ep.all('tpl', 'data', function (tpl, data) { | ||
ep.all('tpl', 'data', function (tpl, data) { // or ep.all(['tpl', 'data'], function (tpl, data) {}) | ||
// 在所有指定的事件触发后,将会被调用执行 | ||
@@ -143,0 +149,0 @@ // 参数对应各自的事件名 |
213886
690
544
+ Addeddebug@2.1.3(transitive)
+ Addedms@0.7.0(transitive)
- Removeddebug@0.7.4(transitive)
Updateddebug@2.1.3