X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=resources%2Fstartup.js;h=52c320c601165c274bde2bac98d5bb9e9a7d1fea;hb=b87d55834e353a16f6ef056e9bff4a62051a55ea;hp=572ef69acccd2848c4aeb928a1c4eb1dfe31ec7a;hpb=32377424b9492bca276d6f8036ed297bef726ed3;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/startup.js b/resources/startup.js index 572ef69acc..52c320c601 100644 --- a/resources/startup.js +++ b/resources/startup.js @@ -1,12 +1,14 @@ /** - * 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+ @@ -14,9 +16,11 @@ * * Opera 9+ * * Chrome 1+ */ -window.isCompatible = function() { +var isCompatible = function() { // IE < 6 - if ( navigator.appVersion.indexOf( 'MSIE' ) !== -1 && parseFloat( navigator.appVersion.split( 'MSIE' )[1] ) < 6 ) { + if ( navigator.appVersion.indexOf( 'MSIE' ) !== -1 + && parseFloat( navigator.appVersion.split( 'MSIE' )[1] ) < 6 ) + { return false; } // TODO: Firefox < 2