Skip to content

Commit

Permalink
Minor code fixes to make the javascript compile correctly in Google C…
Browse files Browse the repository at this point in the history
…losure environments.
  • Loading branch information
mmm2a committed Feb 3, 2016
1 parent 352f9f2 commit 918c44b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions google-client-loader.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@

/**
* Returns the loaded API.
* @type gapi.client
*/
get api() {
if (window.gapi && window.gapi.client &&
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 918c44b

Please sign in to comment.