Skip to content

Commit

Permalink
[fix] pass in data directly, overruled constructor of 500-pagelet
Browse files Browse the repository at this point in the history
  • Loading branch information
Swaagie committed Jan 9, 2015
1 parent 73431b5 commit a8b993a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Expand Up @@ -225,9 +225,8 @@ BigPipe.readable('status', function status(req, res, code, data) {
}

var Pagelet = this._statusCodes[code]
, pagelet = new Pagelet({ pipe: this, req: req, res: res });
, pagelet = new Pagelet({ pipe: this, req: req, res: res }, data);

pagelet.data = data;
return this.bootstrap(pagelet, req, res);
});

Expand Down

0 comments on commit a8b993a

Please sign in to comment.