Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge remote-tracking branch 'dbarlett/master' into iss30

Conflicts:
	src/plugins/youtube.js
  • Loading branch information...
commit c1bdc0eb5bc52e0a71ec619d815d61b0e3ab4f12 2 parents f0c92b9 + c40912a
@eduardocereto eduardocereto authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/plugins/youtube.js
View
7 src/plugins/youtube.js
@@ -21,7 +21,6 @@ var _ytOpts;
*/
var _ytPoolMaps = {};
-
function _ytPool(target, hash) {
if (_ytPoolMaps[hash] === undefined ||
_ytPoolMaps[hash].timeTriggers.length <= 0) {
@@ -41,7 +40,7 @@ function _ytPool(target, hash) {
}
function _ytStopPool(target) {
- var h = target['getVideoData']()['video_id'];
+ var h = target['getVideoUrl']();
if (_ytPoolMaps[h] && _ytPoolMaps[h].timer) {
_ytPool(target, h); // Pool one last time before clearing it.
clearTimeout(_ytPoolMaps[h].timer);
@@ -50,10 +49,10 @@ function _ytStopPool(target) {
function _ytStartPool(target) {
if (_ytTimeTriggers && _ytTimeTriggers.length) {
- var h = target['getVideoData']()['video_id'];
+ var h = target['getVideoUrl']();
if (_ytPoolMaps[h]) {
_ytStopPool(target);
- } else {
+ }else {
_ytPoolMaps[h] = {};
_ytPoolMaps[h].timeTriggers = slice.call(_ytTimeTriggers);
}
Please sign in to comment.
Something went wrong with that request. Please try again.