]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
fixed onOut [#54 state:peer-review-requested]
authorAnna Sobiepanek <annaopensource@gmail.com>
Fri, 25 Jun 2010 18:43:25 +0000 (14:43 -0400)
committerAnna Sobiepanek <annaopensource@gmail.com>
Fri, 25 Jun 2010 18:43:25 +0000 (14:43 -0400)
popcorn.js

index aea30b5f06dcdbbe93ce3075f3f0036c750774fb..1b02351e86d7ab40cde7beb6273257ca621b6b17 100644 (file)
                        }
     };
     this.onOut = function() {
-      document.getElementById("footnote").innerHTML  = "";
+                       if( this.params.target ) {
+                               document.getElementById( this.params.target ).innerHTML  = "";
+                       } else {
+                               //this will be done later in ticket #46 (support default div)
+                       }
     };
   };
   var TwitterCommand = function(name, params, text) {}; // http://twitter.com/celinecelines