summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-10-20 15:44:52 +0200
committerJules Laplace <julescarbon@gmail.com>2017-10-20 15:44:52 +0200
commit3614d790440961177d6e68dcbdc5a0ee6b837c91 (patch)
treeb49d236eb674952a9e9997378325f3dfcc63e82b
parent32a541210c32b31ce6667e67cc84fa7f2e0ae8f8 (diff)
build
-rwxr-xr-xfrontend/static/js/sj_compiled.js15
-rw-r--r--frontend/static/js/src/youtube.js15
2 files changed, 2 insertions, 28 deletions
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 =
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)