зеркало из https://github.com/mozilla/popcorn-js.git
#485 Fixed issue so that images display in same order created
This commit is contained in:
Родитель
5a51bc42e8
Коммит
3704982a4f
|
@ -90,8 +90,6 @@
|
||||||
|
|
||||||
var fontHeight = ( img.height / 12 ) + "px",
|
var fontHeight = ( img.height / 12 ) + "px",
|
||||||
divText = document.createElement( "div" );
|
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, {
|
Popcorn.extend( divText.style, {
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,6 @@ test("Popcorn Image Plugin", function () {
|
||||||
|
|
||||||
popped.exec( 6, function() {
|
popped.exec( 6, function() {
|
||||||
[].forEach.call( document.querySelectorAll( "#imagediv a img" ), function( img, idx ) {
|
[].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" );
|
ok( img.src === sources[ idx ], "Image " + idx + " is in the right order" );
|
||||||
plus();
|
plus();
|
||||||
});
|
});
|
||||||
|
|
Загрузка…
Ссылка в новой задаче