| @@ -84,12 +84,13 @@ | ||
| 84 | 84 | }; |
| 85 | 85 | |
| 86 | 86 | JetpackSlideshow.prototype.finishInit_ = function () { |
| 87 | 87 | this.showLoadingImage( false ); |
| 88 | - this.renderControls_(); | |
| 89 | 88 | |
| 90 | 89 | var self = this; |
| 91 | 90 | if ( this.images.length > 1 ) { |
| 91 | + this.renderControls_(); | |
| 92 | + | |
| 92 | 93 | // Initialize Cycle instance. |
| 93 | 94 | jQuery( this.element ).cycle( { |
| 94 | 95 | fx: this.transition, |
| 95 | 96 | prev: this.controls.prev, |
| @@ -125,11 +126,11 @@ | ||
| 125 | 126 | jQuery( slideshow ).cycle( 'resume', true ); |
| 126 | 127 | } |
| 127 | 128 | } |
| 128 | 129 | } ); |
| 129 | - } else { | |
| 130 | - this.element.children( ':first' ).show(); | |
| 131 | - this.element.css( 'position', 'relative' ); | |
| 130 | + } else if ( this.element.children.length ) { | |
| 131 | + this.element.children[ 0 ].style.display = 'block'; | |
| 132 | + this.element.style.position = 'relative'; | |
| 132 | 133 | } |
| 133 | 134 | this.initialized_ = true; |
| 134 | 135 | }; |
| 135 | 136 | |