From 0d89668cba24cf6de96612d5dcbd55925128c2dc Mon Sep 17 00:00:00 2001 From: Alexei Volkov Date: Sat, 30 Jul 2016 17:53:29 +0300 Subject: [PATCH 1/2] Race condition on google-client-loader #75 --- google-client-loader.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/google-client-loader.html b/google-client-loader.html index 0257a86..1f18baf 100644 --- a/google-client-loader.html +++ b/google-client-loader.html @@ -140,6 +140,9 @@ ready: function() { this._loader = document.createElement('google-js-api'); this.listen(this._loader, 'js-api-load', '_loadClient'); + if (this._loader.libraryLoaded) { + this._loader.fire('js-api-load',{}); + } }, detached: function() { From 0e3a2c3dbcb98cdd31c7777369bf81ae26da25be Mon Sep 17 00:00:00 2001 From: Alexei Volkov Date: Tue, 27 Sep 2016 09:48:35 +0300 Subject: [PATCH 2/2] Update google-client-loader.html --- google-client-loader.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-client-loader.html b/google-client-loader.html index 1f18baf..2a0354f 100644 --- a/google-client-loader.html +++ b/google-client-loader.html @@ -141,7 +141,7 @@ this._loader = document.createElement('google-js-api'); this.listen(this._loader, 'js-api-load', '_loadClient'); if (this._loader.libraryLoaded) { - this._loader.fire('js-api-load',{}); + this._loader.fire('js-api-load'); } },