diff --git a/google-youtube.html b/google-youtube.html index e584999..c5cb9bc 100755 --- a/google-youtube.html +++ b/google-youtube.html @@ -510,6 +510,17 @@ } }, + /** + * When the component is attached, we check if we had the player object. + * If we have it, it means that previously it has been "destroyed" due to the detached function. + * So, we call manually the _apiLoad function + */ + attached: function() { + if(this._player) { + this._apiLoad(); + } + }, + /** * Clean up the underlying Player `