mw.widgets.CategoryCapsuleItemWidget: Explicitly stringify link 'title'
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 24 Nov 2015 17:58:37 +0000 (18:58 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 24 Nov 2015 18:53:59 +0000 (19:53 +0100)
Follow-up to a9e699553e73868ea5bbc80d9b2481ef6cc26a2f. Explicit is
better than implicit.

Change-Id: Ied1c7204fac015c96a4638fd833dee394171ee02

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

index 617aa81..6db7c12 100644 (file)
                } else {
                        this.$link
                                .attr( 'href', prefix + title.getUrl( { action: 'edit', redlink: 1 } ) )
-                               .attr( 'title', mw.message( 'red-link-title', title.getPrefixedText() ) )
+                               .attr( 'title', mw.msg( 'red-link-title', title.getPrefixedText() ) )
                                .addClass( 'new' );
                }
        };