(bug 26265) Many semicolons are missing from JavaScript files
authorSam Reed <reedy@users.mediawiki.org>
Mon, 6 Dec 2010 22:34:15 +0000 (22:34 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 6 Dec 2010 22:34:15 +0000 (22:34 +0000)
And some more unterminated statements..

resources/jquery/jquery.collapsibleTabs.js
resources/jquery/jquery.textSelection.js
resources/mediawiki.language/languages/bs.js
resources/mediawiki.language/languages/mt.js
resources/mediawiki/mediawiki.js
skins/common/wikibits.js

index 195ca86..47811b0 100644 (file)
                        $.collapsibleTabs.handleResize();
                }
        };
-} )( jQuery )
\ No newline at end of file
+} )( jQuery );
\ No newline at end of file
index ebbfebc..e21768e 100644 (file)
@@ -173,7 +173,7 @@ encapsulateSelection: function( options ) {
                                        if ( preRange.compareEndPoints( "StartToEnd", preRange ) == 0 ) {
                                                preFinished = true;
                                        } else {
-                                               preRange.moveEnd( "character", -1 )
+                                               preRange.moveEnd( "character", -1 );
                                                if ( preRange.text == preText ) {
                                                        rawPreText += "\r\n";
                                                } else {
index 87d756e..9f22426 100644 (file)
@@ -17,4 +17,4 @@ mediaWiki.language.convertPlural = function( count, forms ) {
                default:
                        return forms[2];
        }
-}
+};
index 1e27383..44c7bff 100644 (file)
@@ -14,4 +14,4 @@ mediaWiki.language.convertPlural = function( count, forms ) {
                return forms[2];
        }
        return forms[3];
-}
+};
index e886e70..66fbedc 100644 (file)
@@ -910,7 +910,7 @@ window.mediaWiki = new ( function( $ ) {
                                return formatVersionNumber( registry[module].version );
                        }
                        return null;
-               }
+               };
 
                /* Cache document ready status */
 
@@ -954,7 +954,7 @@ window.mediaWiki = new ( function( $ ) {
                 */
                this.Cdata = function( value ) {
                        this.value = value;
-               }
+               };
 
                /**
                 * Create an HTML element string, with safe escaping.
index 0a949ee..7b97830 100644 (file)
@@ -763,7 +763,7 @@ window.ts_resortTable = function( lnk ) {
        if ( ts_alternate_row_colors ) {
                ts_alternate( table );
        }
-}
+};
 
 window.ts_initTransformTable = function() {
        if ( typeof wgSeparatorTransformTable == 'undefined'
@@ -816,11 +816,11 @@ window.ts_initTransformTable = function() {
                        "[-+\u2212]?" + digitClass + "+%?" + // Generic localised
                ")$", "i"
        );
-}
+};
 
 window.ts_toLowerCase = function( s ) {
        return s.toLowerCase();
-}
+};
 
 window.ts_dateToSortKey = function( date ) {
        // y2k notes: two digit years less than 50 are treated as 20XX, greater than 50 are treated as 19XX
@@ -885,7 +885,7 @@ window.ts_dateToSortKey = function( date ) {
                }
        }
        return '00000000';
-}
+};
 
 window.ts_parseFloat = function( s ) {
        if ( !s ) {
@@ -906,15 +906,15 @@ window.ts_parseFloat = function( s ) {
        }
        var num = parseFloat( s.replace(/[, ]/g, '').replace("\u2212", '-') );
        return ( isNaN( num ) ? -Infinity : num );
-}
+};
 
 window.ts_currencyToSortKey = function( s ) {
        return ts_parseFloat(s.replace(/[^-\u22120-9.,]/g,''));
-}
+};
 
 window.ts_sort_generic = function( a, b ) {
        return a[1] < b[1] ? -1 : a[1] > b[1] ? 1 : a[2] - b[2];
-}
+};
 
 window.ts_alternate = function( table ) {
        // Take object table and get all it's tbodies.
@@ -937,7 +937,7 @@ window.ts_alternate = function( table ) {
                        tableRows[j].className = newClassName + ( j % 2 == 0 ? 'even' : 'odd' );
                }
        }
-}
+};
 
 /*
  * End of table sorting code
@@ -997,7 +997,7 @@ window.jsMsg = function( message, className ) {
                messageDiv.innerHTML = message;
        }
        return true;
-}
+};
 
 /**
  * Inject a cute little progress spinner after the specified element
@@ -1015,7 +1015,7 @@ window.injectSpinner = function( element, id ) {
        } else {
                element.parentNode.appendChild( spinner );
        }
-}
+};
 
 /**
  * Remove a progress spinner added with injectSpinner()
@@ -1027,7 +1027,7 @@ window.removeSpinner = function( id ) {
        if( spinner ) {
                spinner.parentNode.removeChild( spinner );
        }
-}
+};
 
 window.runOnloadHook = function() {
        // don't run anything below this for non-dom browsers
@@ -1047,7 +1047,7 @@ window.runOnloadHook = function() {
        for ( var i = 0; i < onloadFuncts.length; i++ ) {
                onloadFuncts[i]();
        }
-}
+};
 
 /**
  * Add an event handler to an element
@@ -1062,11 +1062,11 @@ window.addHandler = function( element, attach, handler ) {
        } else if( element.attachEvent ) {
                element.attachEvent( 'on' + attach, handler );
        }
-}
+};
 
 window.hookEvent = function( hookName, hookFunct ) {
        addHandler( window, hookName, hookFunct );
-}
+};
 
 /**
  * Add a click event handler to an element
@@ -1076,7 +1076,7 @@ window.hookEvent = function( hookName, hookFunct ) {
  */
 window.addClickHandler = function( element, handler ) {
        addHandler( element, 'click', handler );
-}
+};
 
 /**
  * Removes an event handler from an element
@@ -1091,7 +1091,7 @@ window.removeHandler = function( element, remove, handler ) {
        } else if( window.detachEvent ) {
                element.detachEvent( 'on' + remove, handler );
        }
-}
+};
 // note: all skins should call runOnloadHook() at the end of html output,
 //      so the below should be redundant. It's there just in case.
 hookEvent( 'load', runOnloadHook );