Merge "Use preferred number casting method"

This commit is contained in:
jenkins-bot 2017-01-03 17:04:10 +00:00 committed by Gerrit Code Review
commit 7c790f8d12

View file

@ -706,9 +706,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';