summaryrefslogtreecommitdiff
path: root/frontend/static/js/src/youtube.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/static/js/src/youtube.js')
-rw-r--r--frontend/static/js/src/youtube.js15
1 files changed, 1 insertions, 14 deletions
diff --git a/frontend/static/js/src/youtube.js b/frontend/static/js/src/youtube.js
index 52d9450..49254b8 100644
--- a/frontend/static/js/src/youtube.js
+++ b/frontend/static/js/src/youtube.js
@@ -186,20 +186,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")
},
@@ -207,5 +193,6 @@ var Youtube =
window.onYouTubePlayerReady = function (playerId) {
d.warn("YOUTUBE READY")
+ Youtube.build()
}
Player.register(Youtube)