Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #101 from chriswiggins/master
Browse files Browse the repository at this point in the history
Pass options to JSON store callback
  • Loading branch information
mcollina committed Apr 27, 2014
2 parents 7a438b7 + 2db3722 commit 5d0c268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/json_ascoltatore.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ JSONAscoltatore.prototype = Object.create(DecoratorAscoltatore.prototype);
JSONAscoltatore.prototype.wrapCallback = function(callback, next) {
var that = this;
if (!callback._json_ascoltatore_wrapper) {
callback._json_ascoltatore_wrapper = function(t, payload) {
callback._json_ascoltatore_wrapper = function(t, payload, options) {
debug("converting from JSON");
var errored = false;

Expand All @@ -37,7 +37,7 @@ JSONAscoltatore.prototype.wrapCallback = function(callback, next) {
}

if (!errored) {
callback(t, payload);
callback(t, payload, options);
}
};
}
Expand Down

0 comments on commit 5d0c268

Please sign in to comment.