Merge "Sync up with Parsoid parserTests."
[lhc/web/wiklou.git] / resources / src / mediawiki.widgets / mw.widgets.CategoryCapsuleItemWidget.js
index 2eb84e6..946823d 100644 (file)
                        $.each( response.query.pages, function ( index, page ) {
                                var title = new ForeignTitle( page.title ).getPrefixedText();
                                cache.existenceCache[ title ] = !page.missing;
+                               if ( !queue[ title ] ) {
+                                       // Debugging for T139130
+                                       throw new Error( 'No queue for "' + title + '", requested "' + titles.join( '|' ) + '"' );
+                               }
                                queue[ title ].resolve( cache.existenceCache[ title ] );
                        } );
                } );
                        .text( this.label )
                        .attr( 'target', '_blank' )
                        .on( 'click', function ( e ) {
-                               // CapsuleMultiSelectWidget really wants to prevent you from clicking the link, don't let it
+                               // CapsuleMultiselectWidget really wants to prevent you from clicking the link, don't let it
                                e.stopPropagation();
                        } );