]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
#485 Fixed issue so that images display in same order created
authorMohammed Buttu <mohammedbuttu@gmail.com>
Wed, 18 May 2011 17:49:05 +0000 (13:49 -0400)
committerMohammed Buttu <mohammedbuttu@gmail.com>
Wed, 18 May 2011 17:49:05 +0000 (13:49 -0400)
plugins/image/popcorn.image.js
plugins/image/popcorn.image.unit.js

index 6c5005f5b372014de0c6581c7881b05cea6168af..b26d02604e0f2bb9c06f7adbbf0a1866a4df9d26 100644 (file)
@@ -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, {
 
index 868af3d9e200b53eddf857fdbf8bd874607e3c54..bc58cf05c9174822ca033e70c5d67bed38a84136 100644 (file)
@@ -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();
     });