Skip to content
Myr

Changed default view scope to a plain object

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

easier to debug, and kinda useless to use "this" anyway

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 32be4a7 · Browse files · 2 files+3 added−3 removed
This commit

State

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

Diff stats

2 files+3 added−3 removed

  • tests:+1 added−1 removed
  • other:+2 added−2 removed

2 files+3 added−3 removed

modified:lib/view.js+2 added-2 removed
201 unmodified lines
202 if (true === layout || undefined === layout) {203 layout = 'layout';204 }205206 // Default execution scope to the response207 options.scope = options.scope || this.req;206 // Default execution scope to a plain object207 options.scope = options.scope || {};208209 // Populate view210 options.parentView = parent;211
92 unmodified lines
modified:test/fixtures/ferret/index.jade+1 added-1 removed
1li.ferret= ferret.name1li.ferret= ferret.name