From 3704982a4f2cc0900f27fae0bdf87d1ac207ce8e Mon Sep 17 00:00:00 2001 From: Mohammed Buttu Date: Wed, 18 May 2011 13:49:05 -0400 Subject: [PATCH] #485 Fixed issue so that images display in same order created --- plugins/image/popcorn.image.js | 2 -- plugins/image/popcorn.image.unit.js | 1 - 2 files changed, 3 deletions(-) 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(); }); -- 2.43.0