dart-archive / angular.dart

Legacy source repository. See github.com/dart-lang/angular
https://webdev.dartlang.org/angular/
1.25k stars 248 forks source link

Fixes an issue with the generated_template_cache. #1708

Closed winstonewert closed 9 years ago

winstonewert commented 9 years ago

Given the code ng.applicationFactory().addModule(myModule).run(), this is rewritten into ng.staticApplicationFactory(...)..addModule(generated_template_cache).addModule(myModule).run().

The original expression evaluates to an Injector, but the rewritten expression evaluates to to the StaticApplication object. Since addModule already returns this, its not needed to use .., so I've removed it, restoring the correct evaluated object.

rkirov commented 9 years ago

merged.