Skip to content

Commit

Permalink
Switch to template.
Browse files Browse the repository at this point in the history
  • Loading branch information
cramforce committed Sep 9, 2016
1 parent 8ef88c9 commit ca36206
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/event-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ export function isLoaded(element) {
* Returns a promise that will resolve or fail based on the element's 'load'
* and 'error' events. Optionally this method takes a timeout, which will reject
* the promise if the resource has not loaded by then.
* @param {!EventTarget} element
* @param {T} element
* @param {number=} opt_timeout
* @return {!Promise<!Element>}
* @return {!Promise<T>}
* @template T
*/
export function loadPromise(element, opt_timeout) {
let unlistenLoad;
Expand Down

0 comments on commit ca36206

Please sign in to comment.