From 7c171ae0a5e180cd6dfae30612f8046a7713a5a4 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Tue, 18 Jun 2013 12:37:24 -0700 Subject: [PATCH] Whitespace cleanup Change-Id: I49417b95a6c4c2538715e09b74ed3607f6741c3a --- modules/ve/ui/widgets/ve.ui.LinkTargetInputWidget.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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. *