From 442156425313f2a9c7a486b5ee14f76a4672c62f Mon Sep 17 00:00:00 2001 From: David Seifried Date: Wed, 22 Jun 2011 10:40:51 -0400 Subject: [PATCH] [#384] Made requested change with _teardown function --- plugins/timeline/popcorn.timeline.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); + } } }; }, -- 2.43.0