Fixes r78104 much better than r78344 did. By adding jquery.cookie to the loading...
[lhc/web/wiklou.git] / resources / startup.js
index 572ef69..52c320c 100644 (file)
@@ -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+
  * * 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