You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ma...@apache.org on 2013/10/03 00:24:50 UTC

svn commit: r1528656 - /openoffice/ooo-site/trunk/content/download/test/download_other.js

Author: marcus
Date: Wed Oct  2 22:24:50 2013
New Revision: 1528656

URL: http://svn.apache.org/r1528656
Log:
Changed code beautyfing

Modified:
    openoffice/ooo-site/trunk/content/download/test/download_other.js

Modified: openoffice/ooo-site/trunk/content/download/test/download_other.js
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/download_other.js?rev=1528656&r1=1528655&r2=1528656&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download_other.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download_other.js Wed Oct  2 22:24:50 2013
@@ -84,19 +84,19 @@ function write_header( FIRST_HEADER ) {
 	// To workaround that MSIE 8 and older do not support this function
 	if ( !( 'indexOf' in Array.prototype ) ) {
 	  Array.prototype.indexOf= function(find, i /*opt*/) {
-	    if (i === undefined)
+	    if ( i === undefined )
 	      i = 0;
-	    if (i < 0)
+	    if ( i < 0 )
 	      i+= this.length;
-	    if (i < 0)
+	    if ( i < 0 )
 	      i = 0;
-	    for (var n = this.length; i < n; i++) {
-	      if (i in this && this[ i ] === find)
+	    for ( var n = this.length; i < n; i++ ) {
+	      if ( i in this && this[ i ] === find )
 		return i;
 	    }
 	    return -1;
 	  };
-}
+	}
 
 	// If it's the first header at the top of a table use a normal font size
 	// But use a smaller font size for further headers within the table