emberjs/ember.js — pull request #2644 by jayphelps (2013-05-08 23:01:07+00:00)
Title: Makes partial helper only lookup the deprecated template name if the first try is unsuccessful.

Ember has changed partials to require an underscore in their name but still has support for the older, deprecated way. In doing so, it currently looks up both templates regardless of whether the first one is found or not.

For users who load their templates in via AJAX for dev purposes, this causes an unnecessary ajax request that likesly 404's. Not the end of the world, but there's no sense looking up the deprecated template if the correct one is found.

This pull requests changes that behavior.