Skip to content
Myr

Fixed req/res proto inheritance

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent b7b032f · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:lib/application.js+2 added
83 unmodified lines
84 };8586 // inherit view callbacks87 this.on('mount', function(parent){88 this.request.__proto__ = parent.request;89 this.response.__proto__ = parent.response;90 this.engines.__proto__ = parent.engines;91 this.viewCallbacks = parent.viewCallbacks.slice(0);92 });93
462 unmodified lines