aboutsummaryrefslogtreecommitdiff
path: root/js/document/html-document.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/document/html-document.js')
-rwxr-xr-xjs/document/html-document.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js
index d90231e3..924a013d 100755
--- a/js/document/html-document.js
+++ b/js/document/html-document.js
@@ -863,16 +863,16 @@ exports.HTMLDocument = Montage.create(TextDocument, {
863 */ 863 */
864 pauseVideos:{ 864 pauseVideos:{
865 value:function(removeSrc){ 865 value:function(removeSrc){
866 console.log("$$$ pauseVideos"); 866 //console.log("$$$ pauseVideos");
867 var videosArr = this.documentRoot.getElementsByTagName("video"), i=0; 867 var videosArr = this.documentRoot.getElementsByTagName("video"), i=0;
868 for(i=0;i<videosArr.length;i++){ 868 for(i=0;i<videosArr.length;i++){
869 if(!videosArr[i].paused){ 869 if(!videosArr[i].paused){
870 videosArr[i].pause(); 870 videosArr[i].pause();
871 } 871 }
872 console.log("$$$ Paused ", videosArr[i]); 872 //console.log("$$$ Paused ", videosArr[i]);
873 if((typeof removeSrc !== "undefined") && (removeSrc === true)){ 873 if((typeof removeSrc !== "undefined") && (removeSrc === true)){
874 videosArr[i].src = ""; 874 videosArr[i].src = "";
875 console.log("$$$ stopped "); 875 //console.log("$$$ stopped ");
876 } 876 }
877 } 877 }
878 } 878 }
@@ -884,11 +884,11 @@ exports.HTMLDocument = Montage.create(TextDocument, {
884 */ 884 */
885 stopVideos:{ 885 stopVideos:{
886 value:function(){ 886 value:function(){
887 console.log("$$$ stopVideos"); 887 //console.log("$$$ stopVideos");
888 var videosArr = this.documentRoot.getElementsByTagName("video"), i=0; 888 var videosArr = this.documentRoot.getElementsByTagName("video"), i=0;
889 for(i=0;i<videosArr.length;i++){ 889 for(i=0;i<videosArr.length;i++){
890 videosArr[i].src = ""; 890 videosArr[i].src = "";
891 console.log("$$$ stopped ", videosArr[i]); 891 //console.log("$$$ stopped ", videosArr[i]);
892 } 892 }
893 } 893 }
894 } 894 }