From 918c44bf40f3fa5f6c234d0a42650d1a41bec564 Mon Sep 17 00:00:00 2001 From: Mark Morgan Date: Wed, 3 Feb 2016 09:42:13 -0700 Subject: [PATCH] Minor code fixes to make the javascript compile correctly in Google Closure environments. --- google-client-loader.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/google-client-loader.html b/google-client-loader.html index 40340ce..d68323e 100644 --- a/google-client-loader.html +++ b/google-client-loader.html @@ -121,7 +121,6 @@ /** * Returns the loaded API. - * @type gapi.client */ get api() { if (window.gapi && window.gapi.client && @@ -204,7 +203,7 @@ this._createSelfRemovingListener(this.errorEventName)); // Did we get an error when we tried to load this API before? } else if (_statuses[this.name] == 'error') { - this._fireError(); + this._fireError(null); // Otherwise, looks like we're loading a new API. } else { var root;