eventproxy
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -477,2 +477,5 @@ /*global exports */ | ||
// callback(err, args1, args2, ...) | ||
var args = Array.prototype.slice.call(arguments, 1); | ||
if (typeof handler === 'string') { | ||
@@ -484,3 +487,3 @@ // getAsync(query, ep.done('query')); | ||
// })); | ||
return that.emit(handler, callback ? callback.call(data) : data); | ||
return that.emit(handler, callback ? callback.apply(null, args) : data); | ||
} | ||
@@ -494,3 +497,2 @@ | ||
// callback(err, args1, args2, ...) | ||
var args = Array.prototype.slice.call(arguments, 1); | ||
handler.apply(null, args); | ||
@@ -511,3 +513,3 @@ }; | ||
}; | ||
}; | ||
}; | ||
@@ -514,0 +516,0 @@ /** |
@@ -40,3 +40,3 @@ { | ||
}, | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"main": "index.js", | ||
@@ -43,0 +43,0 @@ "directories": { |
@@ -1,2 +0,2 @@ | ||
EventProxy [![Build Status](https://secure.travis-ci.org/JacksonTian/eventproxy.png)](http://travis-ci.org/JacksonTian/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) [English Doc](https://github.com/JacksonTian/eventproxy/blob/master/README_en.md) | ||
====== | ||
@@ -3,0 +3,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48150
511