From: Mohammed Buttu Date: Wed, 18 May 2011 17:49:05 +0000 (-0400) Subject: #485 Fixed issue so that images display in same order created X-Git-Tag: v0.6~6^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=3704982a4f2cc0900f27fae0bdf87d1ac207ce8e;p=popcorn-js.git #485 Fixed issue so that images display in same order created --- diff --git a/plugins/image/popcorn.image.js b/plugins/image/popcorn.image.js index 6c5005f..b26d026 100644 --- a/plugins/image/popcorn.image.js +++ b/plugins/image/popcorn.image.js @@ -90,8 +90,6 @@ var fontHeight = ( img.height / 12 ) + "px", divText = document.createElement( "div" ); - // add the widget's div to the target div - document.getElementById( options.target ) && document.getElementById( options.target ).appendChild( options.link ); Popcorn.extend( divText.style, { diff --git a/plugins/image/popcorn.image.unit.js b/plugins/image/popcorn.image.unit.js index 868af3d..bc58cf0 100644 --- a/plugins/image/popcorn.image.unit.js +++ b/plugins/image/popcorn.image.unit.js @@ -72,7 +72,6 @@ test("Popcorn Image Plugin", function () { popped.exec( 6, function() { [].forEach.call( document.querySelectorAll( "#imagediv a img" ), function( img, idx ) { - alert(idx + " src = " + img.src); ok( img.src === sources[ idx ], "Image " + idx + " is in the right order" ); plus(); });