Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Simplify call to renderTemplate in template helper

  • Loading branch information...
commit cb9430ed1c11a7caf752aac40d20160aedb5fa07 1 parent 3b93ec1
Ryan Eastridge authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/helpers/template.js
2  src/helpers/template.js
View
@@ -1,6 +1,6 @@
Handlebars.registerHelper('template', function(name, options) {
var context = _.extend({fn: options && options.fn}, this, options ? options.hash : {});
- var output = Thorax.View.prototype.renderTemplate.call(getOptionsData(options).view, name, context);
+ var output = getOptionsData(options).view.renderTemplate(name, context);
return new Handlebars.SafeString(output);
});
Please sign in to comment.
Something went wrong with that request. Please try again.