Skip to content
Myr

Removed old references to viewCallbacks

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

Was part of the deprecated locals.use() functionallity

authored by Nadav Ivgi · committed by Nadav Ivgi · parent bb29da5 · 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/**
492 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}