Skip to content
Myr

Merge pull request #1533 from shesek/old-viewcallbacks

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

Removed old references to viewCallbacks

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parents ec4d4a7, 1e251af · Browse files · 2 files+1 added−4 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+1 added−4 removed

  • other:+1 added−4 removed

2 files+1 added−4 removed

modified:lib/application.js-1 removed
32 unmodified lines
33app.init = function(){34 this.cache = {};35 this.settings = {};36 this.engines = {};37 this.viewCallbacks = [];37 this.defaultConfiguration();38};3940/**
493 unmodified lines
modified:lib/utils.js+1 added-3 removed
27 unmodified lines
28 * @api private29 */3031exports.locals = function(obj){32 obj.viewCallbacks = obj.viewCallbacks || [];3332 function locals(obj){33 for (var key in obj) locals[key] = obj[key];34 return obj;35 };
240 unmodified lines
276 })277 .replace(/([\/.])/g, '\\$1')278 .replace(/\*/g, '(.*)');279 return new RegExp('^' + path + '$', sensitive ? '' : 'i');282}280}