Skip to content

Commit 9df93d6

Browse files
committed
Merge pull request expressjs#1533 from shesek/old-viewcallbacks
Removed old references to viewCallbacks
2 parents ec4d4a7 + 1e251af commit 9df93d6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/application.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ app.init = function(){
3434
this.cache = {};
3535
this.settings = {};
3636
this.engines = {};
37-
this.viewCallbacks = [];
3837
this.defaultConfiguration();
3938
};
4039

lib/utils.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ exports.etag = function(body){
2929
*/
3030

3131
exports.locals = function(obj){
32-
obj.viewCallbacks = obj.viewCallbacks || [];
33-
3432
function locals(obj){
3533
for (var key in obj) locals[key] = obj[key];
3634
return obj;
@@ -279,4 +277,4 @@ exports.pathRegexp = function(path, keys, sensitive, strict) {
279277
.replace(/([\/.])/g, '\\$1')
280278
.replace(/\*/g, '(.*)');
281279
return new RegExp('^' + path + '$', sensitive ? '' : 'i');
282-
}
280+
}

0 commit comments

Comments
 (0)