mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Fix allowTemplateFromDomModule opt-in
This commit is contained in:
@@ -280,7 +280,9 @@ export const ElementMixin = dedupingMixin(base => {
|
||||
*/
|
||||
function getTemplateFromDomModule(is) {
|
||||
let template = null;
|
||||
if (is && allowTemplateFromDomModule) {
|
||||
// Under strictTemplatePolicy in 3.x+, dom-module lookup is only allowed
|
||||
// when opted-in via allowTemplateFromDomModule
|
||||
if (is && (!strictTemplatePolicy || allowTemplateFromDomModule)) {
|
||||
template = DomModule.import(is, 'template');
|
||||
// Under strictTemplatePolicy, require any element with an `is`
|
||||
// specified to have a dom-module
|
||||
|
||||
Reference in New Issue
Block a user