Skip to content

Commit

Permalink
remove get for an internal property that will never be a CP
Browse files Browse the repository at this point in the history
In one example this removes nearly 8% of gets
  • Loading branch information
stefanpenner committed Aug 4, 2015
1 parent a64e211 commit b6b0739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ember-views/lib/views/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ var Component = View.extend(TargetActionSupport, ComponentTemplateDeprecation, {

_template: computed('templateName', {
get() {
if (get(this, '_deprecatedFlagForBlockProvided')) {
if (this._deprecatedFlagForBlockProvided) {
return true;
}
var templateName = get(this, 'templateName');
Expand Down

0 comments on commit b6b0739

Please sign in to comment.