From 4ce08461f070b0f45e556c1564d5a48c0059a529 Mon Sep 17 00:00:00 2001 From: Hongfei Ding Date: Wed, 31 Jan 2018 09:41:02 -0800 Subject: [PATCH] Removes the check for custom-template declaration (#13165) * Removes the check for custom-template declaration * remove test --- src/service/template-impl.js | 24 ------------------------ test/functional/test-template.js | 7 ------- 2 files changed, 31 deletions(-) diff --git a/src/service/template-impl.js b/src/service/template-impl.js index e4ac2aefca74..91e982c9737a 100644 --- a/src/service/template-impl.js +++ b/src/service/template-impl.js @@ -289,7 +289,6 @@ export class Templates { return this.templateClassMap_[type]; } - this.checkTemplateDeclared_(element, type); let aResolve; const promise = new Promise((resolve, unusedReject) => { aResolve = resolve; @@ -299,29 +298,6 @@ export class Templates { return promise; } - - /** - * Checks that the template type has actually been declared by a - * `