aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/html-document.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js
index bc27ea7b..0dc26884 100755
--- a/js/document/html-document.js
+++ b/js/document/html-document.js
@@ -977,7 +977,7 @@ exports.HTMLDocument = Montage.create(TextDocument, {
977 }, 977 },
978 //////////////////////////////////////////////////////////////////// 978 ////////////////////////////////////////////////////////////////////
979 /** 979 /**
980 *pause videos on switching or closing the document 980 *pause videos on switching or closing the document, so that the browser does not keep downloading the media data
981 */ 981 */
982 pauseVideos:{ 982 pauseVideos:{
983 value:function(){ 983 value:function(){
@@ -992,6 +992,7 @@ exports.HTMLDocument = Montage.create(TextDocument, {
992 992
993 /** 993 /**
994 * remove the video src on closing the document, so that the browser does not keep downloading the media data, if the tag does not get garbage collected 994 * remove the video src on closing the document, so that the browser does not keep downloading the media data, if the tag does not get garbage collected
995 *removeSrc : boolean to remove the src if the video... set only in the close document flow
995 */ 996 */
996 stopVideos:{ 997 stopVideos:{
997 value:function(){ 998 value:function(){
@@ -1001,7 +1002,6 @@ exports.HTMLDocument = Montage.create(TextDocument, {
1001 } 1002 }
1002 } 1003 }
1003 }, 1004 },
1004
1005 pauseAndStopVideos:{ 1005 pauseAndStopVideos:{
1006 value:function(){ 1006 value:function(){
1007 var videosArr = this.documentRoot.getElementsByTagName("video"), i=0; 1007 var videosArr = this.documentRoot.getElementsByTagName("video"), i=0;