From: Anna Sobiepanek Date: Fri, 25 Jun 2010 18:43:25 +0000 (-0400) Subject: fixed onOut [#54 state:peer-review-requested] X-Git-Tag: v0.1~74^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=6f9f6a54db26777962730916b9ae65f2b609f8af;p=popcorn-js.git fixed onOut [#54 state:peer-review-requested] --- diff --git a/popcorn.js b/popcorn.js index aea30b5..1b02351 100644 --- a/popcorn.js +++ b/popcorn.js @@ -172,7 +172,11 @@ } }; 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