mw.widgets.CategoryCapsuleItemWidget: Pass the right 'this'
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 21 Mar 2016 16:38:06 +0000 (17:38 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 21 Mar 2016 18:54:11 +0000 (18:54 +0000)
Follow-up to 7b57752e65c3cac62d973f43d1060b6bd0ab2a2f.

Bug: T130544
Change-Id: I89c18be911bcc492f3a70e1c1da3d2fd2bf65a05

resources/src/mediawiki.widgets/mw.widgets.CategoryCapsuleItemWidget.js

index 29eaaad..5369d35 100644 (file)
@@ -55,7 +55,7 @@
                                var title = new ForeignTitle( page.title ).getPrefixedText();
                                this.existenceCache[ title ] = !page.missing;
                                queue[ title ].resolve( this.existenceCache[ title ] );
-                       } );
+                       }.bind( this ) );
                }.bind( this ) );
        };