angular/angular.js — pull request #10265 by pkozlowski-opensource (2014-11-29 10:35:49+00:00)
Title: refactor($templateRequest): avoid double calls to $templateCache.put

Passing a $templateCache instance as part of the config (as [here](https://github.com/angular/angular.js/blob/d0351c4803c289b66468f693c93d33ab0b8d85ee/src/ng/templateRequest.js#L44) is enough to have the cache filled correctly, we don't need explicit calls to `$templateCache.put`.

We've got a test that proves that things work correctly after this change:
https://github.com/angular/angular.js/blob/d0351c4803c289b66468f693c93d33ab0b8d85ee/test/ng/templateRequestSpec.js#L19-L29