Only pause is needed in Question Set

(questions only have pause)
HFJ-1218
pull/3/head
Frode Petterson 2015-11-18 10:00:44 +01:00
parent a36014c1e0
commit fcbcfc951e
1 changed files with 1 additions and 11 deletions

View File

@ -572,17 +572,6 @@ H5P.QuestionSet = function (options, contentId) {
typeof instance.pause === 'function')) {
instance.pause();
}
else if (instance.video !== undefined &&
instance.video.pause !== undefined &&
(instance.video.pause instanceof Function ||
typeof instance.video.pause === 'function')) {
instance.video.pause();
}
else if (instance.stop !== undefined &&
(instance.stop instanceof Function ||
typeof instance.stop === 'function')) {
instance.stop();
}
}
catch (err) {
// Prevent crashing, log error.
@ -590,5 +579,6 @@ H5P.QuestionSet = function (options, contentId) {
}
};
};
H5P.QuestionSet.prototype = Object.create(H5P.EventDispatcher.prototype);
H5P.QuestionSet.prototype.constructor = H5P.QuestionSet;