Skip to content

Commit

Permalink
Make owner optional as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Jan 12, 2018
1 parent 38c0e44 commit b52c315
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/utils/templatize.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/lib/utils/templatize.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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};


/**
Expand Down

0 comments on commit b52c315

Please sign in to comment.