Skip to content

Commit bcf4a96

Browse files
vicbmhevery
authored andcommitted
refactor(Compiler): simplify the code
Closes angular#862
1 parent 04abf26 commit bcf4a96

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/angular2/src/core/compiler/compiler.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,10 @@ export class Compiler {
150150
// TODO(vicb): union type return ProtoView or Promise<ProtoView>
151151
_compileTemplate(template: Template, tplElement, component: Type) {
152152
var pipeline = new CompilePipeline(this.createSteps(component, template));
153-
var compilationCtxtDescription = stringify(this._reader.read(component).type);
154153
var compileElements;
155154

156155
try {
157-
compileElements = pipeline.process(tplElement, compilationCtxtDescription);
156+
compileElements = pipeline.process(tplElement, stringify(component));
158157
} catch(ex) {
159158
return PromiseWrapper.reject(ex);
160159
}

0 commit comments

Comments
 (0)