Browse files

Removed old references to viewCallbacks

Was part of the deprecated locals.use() functionallity
  • Loading branch information...
1 parent bb29da5 commit 1e251af8d3fc2b920bf97aa11942374963f1eb12 Nadav Ivgi committed Mar 6, 2013
Showing with 1 addition and 4 deletions.
  1. +0 −1 lib/application.js
  2. +1 −3 lib/utils.js
View
1 lib/application.js
@@ -34,7 +34,6 @@ app.init = function(){
this.cache = {};
this.settings = {};
this.engines = {};
- this.viewCallbacks = [];
this.defaultConfiguration();
};
View
4 lib/utils.js
@@ -29,8 +29,6 @@ exports.etag = function(body){
*/
exports.locals = function(obj){
- obj.viewCallbacks = obj.viewCallbacks || [];
-
function locals(obj){
for (var key in obj) locals[key] = obj[key];
return obj;
@@ -279,4 +277,4 @@ exports.pathRegexp = function(path, keys, sensitive, strict) {
.replace(/([\/.])/g, '\\$1')
.replace(/\*/g, '(.*)');
return new RegExp('^' + path + '$', sensitive ? '' : 'i');
-}
+}

0 comments on commit 1e251af

Please sign in to comment.