Use preferred number casting method

Change-Id: I77215f2bdb6eb055375e5b803d23b6f26df2d8d1
This commit is contained in:
Ed Sanders 2016-12-29 20:09:27 +00:00
parent 2217913182
commit 3f47aec20b

View file

@ -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';