Merge pull request #56 from jonathanong/bind-onerror

bind .onerror to context
This commit is contained in:
Jonathan Ong 2013-10-10 11:11:38 -07:00
commit ada1be13bc

View file

@ -229,5 +229,6 @@ function createContext() {
this.req = req;
this.res = res;
this.cookies = new Cookies(req, res);
this.onerror = this.onerror.bind(this);
}
}