Skip to content

Commit

Permalink
Use resolveOther to resolve template modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Sep 26, 2013
1 parent b7b7cac commit 5660294
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions vendor/resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,10 @@ define("resolver",
return this._super(parsedName);
}
}

function resolveTemplate(parsedName) {
return Ember.TEMPLATES[parsedName.name] || Ember.TEMPLATES[Ember.String.underscore(parsedName.name)];
}

// Ember.DefaultResolver docs:
// https://github.com/emberjs/ember.js/blob/master/packages/ember-application/lib/system/resolver.js
var Resolver = Ember.DefaultResolver.extend({
resolveTemplate: resolveTemplate,
resolveTemplate: resolveOther,
resolveOther: resolveOther,
parseName: parseName,
normalize: function(fullName) {
Expand Down

0 comments on commit 5660294

Please sign in to comment.