Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js |
— | — | @@ -236,7 +236,7 @@ |
237 | 237 | $( '#mw-wikilove-image' ).val( currentTypeOrSubtype.image || '' ); |
238 | 238 | |
239 | 239 | if( typeof currentTypeOrSubtype.gallery == 'object' |
240 | | - && currentTypeOrSubtype.gallery.imageList instanceof Array |
| 240 | + && $.isArray( currentTypeOrSubtype.gallery.imageList ) |
241 | 241 | ) { |
242 | 242 | $( '#mw-wikilove-gallery, #mw-wikilove-gallery-label' ).show(); |
243 | 243 | $.wikiLove.showGallery(); // build gallery from array of images |