Skip to content

Commit

Permalink
Merge pull request #11104 from rwjblue/remove-non-htmlbars-path
Browse files Browse the repository at this point in the history
Remove non-HTMLBars template path.
  • Loading branch information
rwjblue committed May 11, 2015
2 parents ab9276b + ed06f9e commit 9ba2dbc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/ember-views/lib/views/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -775,11 +775,7 @@ var View = CoreView.extend(
var template = get(this, 'template');

if (template) {
if (template.isHTMLBars) {
return template.render(context, options, { contextualElement: morph.contextualElement }).fragment;
} else {
return template(context, options);
}
return template.render(context, options, { contextualElement: morph.contextualElement }).fragment;
}
},

Expand Down

0 comments on commit 9ba2dbc

Please sign in to comment.