From: David Seifried Date: Wed, 22 Jun 2011 14:40:51 +0000 (-0400) Subject: [#384] Made requested change with _teardown function X-Git-Tag: v0.7^2~27^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=442156425313f2a9c7a486b5ee14f76a4672c62f;p=popcorn-js.git [#384] Made requested change with _teardown function --- diff --git a/plugins/timeline/popcorn.timeline.js b/plugins/timeline/popcorn.timeline.js index 4d56204..765f141 100644 --- a/plugins/timeline/popcorn.timeline.js +++ b/plugins/timeline/popcorn.timeline.js @@ -88,9 +88,9 @@ }, _teardown: function( options ) { - while ( target.childNodes.length >= 1 ) { - target.removeChild( document.getElementById( options.target ).firstChild ); - } + while ( target.firstChild ) { + target.removeChild( target.firstChild ); + } } }; },