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

Commit

Permalink
Pass options to JSON store callback
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswiggins committed Apr 21, 2014
1 parent adfa99d commit 2db3722
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 2db3722

Please sign in to comment.