From b52c315e251e73aa5620def7fd28ab1d29217a41 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Fri, 12 Jan 2018 09:37:58 -0800 Subject: [PATCH] Make owner optional as well. --- lib/utils/templatize.html | 2 +- types/lib/utils/templatize.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/templatize.html b/lib/utils/templatize.html index 42b1b2b30e..d4cdbcdc8b 100644 --- a/lib/utils/templatize.html +++ b/lib/utils/templatize.html @@ -459,7 +459,7 @@ * * @memberof Polymer.Templatize * @param {!HTMLTemplateElement} template Template to templatize - * @param {!Polymer_PropertyEffects} owner Owner of the template instances; + * @param {Polymer_PropertyEffects=} owner Owner of the template instances; * any optional callbacks will be bound to this owner. * @param {Object=} options Options dictionary (see summary for details) * @return {function(new:TemplateInstanceBase)} Generated class bound to the template diff --git a/types/lib/utils/templatize.d.ts b/types/lib/utils/templatize.d.ts index 882d33c53a..01a2115924 100644 --- a/types/lib/utils/templatize.d.ts +++ b/types/lib/utils/templatize.d.ts @@ -141,7 +141,7 @@ declare namespace Polymer { * @returns Generated class bound to the template * provided */ - function templatize(template: HTMLTemplateElement, owner: Polymer.PropertyEffects, options?: object|null): {new(): TemplateInstanceBase}; + function templatize(template: HTMLTemplateElement, owner?: Polymer.PropertyEffects|null, options?: object|null): {new(): TemplateInstanceBase}; /**