X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fstartup.js;h=7951af06b82430394080c3423466d0a011a920fe;hb=72e00dfb197ef8685e4c6aa993a2595da50ea435;hp=572ef69acccd2848c4aeb928a1c4eb1dfe31ec7a;hpb=32377424b9492bca276d6f8036ed297bef726ed3;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/startup.js b/resources/startup.js index 572ef69acc..7951af06b8 100644 --- a/resources/startup.js +++ b/resources/startup.js @@ -1,30 +1,33 @@ /** - * This script provides a function which is run to evaluate whether or not to continue loading the jquery and mediawiki - * modules. This code should work on even the most anchient of browsers, so be very careful when editing. + * This script provides a function which is run to evaluate whether or not to + * continue loading the jquery and mediawiki modules. This code should work on + * even the most ancient of browsers, so be very careful when editing. */ /** * Returns false when run in a black-listed browser - * - * This function will be deleted after it's used, so do not expand it to be generally useful beyond startup - * + * + * This function will be deleted after it's used, so do not expand it to be + * generally useful beyond startup + * * jQuery has minimum requirements of: - * * Firefox 2.0+ - * * Internet Explorer 6+ - * * Safari 3+ - * * Opera 9+ - * * Chrome 1+ + * * Internet Explorer 6.0+ + * * Firefox 3.6+ + * * Safari 5.0+ + * * Opera 11+ + * * Chrome */ -window.isCompatible = function() { - // IE < 6 - if ( navigator.appVersion.indexOf( 'MSIE' ) !== -1 && parseFloat( navigator.appVersion.split( 'MSIE' )[1] ) < 6 ) { +function isCompatible() { + // IE < 6.0 + if ( navigator.appVersion.indexOf( 'MSIE' ) !== -1 + && parseFloat( navigator.appVersion.split( 'MSIE' )[1] ) < 6 ) + { return false; } - // TODO: Firefox < 2 - // TODO: Safari < 3 - // TODO: Opera < 9 - // TODO: Chrome < 1 + // @todo FIXME: Firefox < 3.6 + // @todo FIXME: Safari < 5.0 + // @todo FIXME: Opera < 11 return true; -}; +} /** * The startUp() function will be generated and added here (at the bottom) */