diff --git a/modules/ve/ui/widgets/ve.ui.LinkTargetInputWidget.js b/modules/ve/ui/widgets/ve.ui.LinkTargetInputWidget.js index b1f0ea0b40..5c3c136e03 100644 --- a/modules/ve/ui/widgets/ve.ui.LinkTargetInputWidget.js +++ b/modules/ve/ui/widgets/ve.ui.LinkTargetInputWidget.js @@ -50,15 +50,16 @@ ve.ui.LinkTargetInputWidget.prototype.onEdit = function () { setTimeout( ve.bind( function () { // RTL/LTR check if ( $( 'body' ).hasClass( 'rtl' ) ) { - var isExt = ve.init.platform.getExternalLinkUrlProtocolsRegExp().test( this.$input.val() ); + var isExt = ve.init.platform.getExternalLinkUrlProtocolsRegExp() + .test( this.$input.val() ); // If URL is external, flip to LTR. Otherwise, set back to RTL this.setRTL( !isExt ); } this.setValue( this.$input.val() ); }, this ) ); } - }; + /** * Set the value of the input. *