removed old dynamic helper logic from the view system

This commit is contained in:
Tj Holowaychuk 2011-07-15 10:31:52 -07:00
parent d689656775
commit 986916cf3e

View File

@ -382,23 +382,6 @@ res._render = function(view, opts, fn, parent, sub){
// charset option
if (options.charset) this.charset = options.charset;
// Dynamic helper support
if (false !== options.dynamic) {
// cache
if (!this.__dynamic) {
this.__dynamic = {};
for (var key in dynamic) {
this.__dynamic[key] = dynamic[key].call(
this.app
, this.req
, this);
}
}
// apply
merge(options, this.__dynamic);
}
// Merge view locals
union(options, locals);