From 3614d790440961177d6e68dcbdc5a0ee6b837c91 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 20 Oct 2017 15:44:52 +0200 Subject: build --- frontend/static/js/sj_compiled.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'frontend/static/js/sj_compiled.js') diff --git a/frontend/static/js/sj_compiled.js b/frontend/static/js/sj_compiled.js index 8f84dfb..1cd4974 100755 --- a/frontend/static/js/sj_compiled.js +++ b/frontend/static/js/sj_compiled.js @@ -2153,20 +2153,6 @@ var Youtube = }, }) }, - deferBuild: function (uid){ - if (! YT || ! YT.loaded) { - setTimeout(function(){ - this.defer(uid) - }.bind(this), 300) - } - else { - // not sure why i need to delay here.. - // stopped working until i added the setTimeout - setTimeout(function(){ - this.build(uid) - }.bind(this), 20) - } - }, init: function () { d.warn("YOUTUBE INIT") }, @@ -2174,6 +2160,7 @@ var Youtube = window.onYouTubePlayerReady = function (playerId) { d.warn("YOUTUBE READY") + Youtube.build() } Player.register(Youtube) var Soundcloud = -- cgit v1.2.3-70-g09d2