From 3f47aec20b16b0bde56c91192ae1d9d591b20eaf Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 29 Dec 2016 20:09:27 +0000 Subject: [PATCH] Use preferred number casting method Change-Id: I77215f2bdb6eb055375e5b803d23b6f26df2d8d1 --- .../init/targets/ve.init.mw.DesktopArticleTarget.init.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js index 7c8b6d005e..4ecf3b830c 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js +++ b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js @@ -699,9 +699,9 @@ }; // Cast "0" (T89513) - enable = Number( mw.user.options.get( 'visualeditor-enable' ) ); - tempdisable = Number( mw.user.options.get( 'visualeditor-betatempdisable' ) ); - autodisable = Number( mw.user.options.get( 'visualeditor-autodisable' ) ); + enable = +mw.user.options.get( 'visualeditor-enable' ); + tempdisable = +mw.user.options.get( 'visualeditor-betatempdisable' ); + autodisable = +mw.user.options.get( 'visualeditor-autodisable' ); tabPreference = mw.user.options.get( 'visualeditor-tabs' ); init.isSingleEditTab = conf.singleEditTab && tabPreference !== 'multi-tab';