Skip to content

Commit

Permalink
dispatchEvent returns boolean (#5117)
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks authored Feb 15, 2018
1 parent 6b47124 commit 9d86135
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/utils/templatize.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,10 @@
* dispatch events safely no-op.
*
* @param {Event} event Event to dispatch
* @return {boolean} Always true.
*/
dispatchEvent(event) { // eslint-disable-line no-unused-vars
return true;
}
}

Expand Down
3 changes: 2 additions & 1 deletion types/lib/utils/templatize.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ declare class TemplateInstanceBase extends
* dispatch events safely no-op.
*
* @param event Event to dispatch
* @returns Always true.
*/
dispatchEvent(event: Event|null): any;
dispatchEvent(event: Event|null): boolean;
}

declare namespace templateInfo {
Expand Down

0 comments on commit 9d86135

Please sign in to comment.