]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
removed invalid TODO comments
authorScottDowne <sdowne@learn.senecac.on.ca>
Mon, 18 Oct 2010 18:57:32 +0000 (14:57 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Mon, 18 Oct 2010 18:57:32 +0000 (14:57 -0400)
popcorn.js

index 5a38c2cc1621f40568b345282a5af28196197792..3bcf7b1da19067fc6c08e62beec7f06e92c152ad 100644 (file)
   popcorn.FootnoteCommand = function(name, params, text, videoManager) {
     popcorn.VideoCommand.call(this, name, params, text, videoManager);
     this.onIn = function() {
-      //if the user specifies a target div for this in the xml/json use it
-      //otherwise make a new div 
-      if(this.params.target) {
-        document.getElementById(this.params.target).innerHTML  = this.text;
-      } else {
-        //this will be done later in ticket #46 (support default div)
-        //for this case i would think get the parent div of the <video> and append a new div to it
-      }
+      document.getElementById(this.params.target).innerHTML  = this.text;
     };
     this.onOut = function() {
-      if(this.params.target) {
-        document.getElementById(this.params.target).innerHTML  = "";
-      } else {
-        //this will be done later in ticket #46 (support default div)
-      }
+      document.getElementById(this.params.target).innerHTML  = "";
     };
   };
 
       attribution = this.text;
     }
     this.onIn = function() {
-      //check if the user specified a target div otherwise create default
-      if(this.params.target) {
-        document.getElementById(this.params.target).innerHTML = attribution;
-      } else {
-        //default div
-      }
+      document.getElementById(this.params.target).innerHTML = attribution;
     };
     this.onOut = function() {
-      if(this.params.target) {
-        document.getElementById(this.params.target).innerHTML = "";
-      } else {
-        //default div
-      }
+      document.getElementById(this.params.target).innerHTML = "";
     };
   };