Permalink
Browse files

Update coding style for brackets

See pull request 28 :
Change
if (test)
{
   doStuff();
}
to
if (test) {
   doStuff();
}

Also remove an extra (unused) `this` and fix a typo.
  • Loading branch information...
1 parent e9cfea9 commit 98bb58fb9fcb6cb5970fc487a2485c2443b0981b @dduponchel dduponchel committed Jan 13, 2013
Showing with 166 additions and 329 deletions.
  1. +13 −26 index.html
  2. +4 −2 jszip-deflate.js
  3. +4 −2 jszip-inflate.js
  4. +60 −123 jszip-load.js
  5. +70 −140 jszip.js
  6. +15 −36 test/index.html
View
@@ -6,8 +6,7 @@
<meta name="description" content="Create .zip files using Javascript. Provides a simple API to place any content generated by Javascript into a .zip file for your users." />
<link rel="stylesheet" href="960.css" type="text/css" media="all" />
<style type="text/css">
-body
-{
+body {
font-family: Helvetica, Deja Vu Sans, sans-serif;
font-size: 90%;
}
@@ -16,8 +15,7 @@
a:hover {text-decoration: none;}
-ul, ol
-{
+ul, ol {
padding-left: 20px;
}
@@ -30,30 +28,25 @@
h3 { margin-bottom: 0.2em; }
p, ul { margin: 0.5em 0; }
-h4
-{
+h4 {
border-bottom: 1px solid #CCCCCC;
}
-#header
-{
+#header {
text-align: center;
}
-.border
-{
+.border {
border-right: 1px solid #CCCCCC;
margin-right: 0;
padding-right: 9px;
}
-table
-{
+table {
margin-right: 2em;
}
-th, td
-{
+th, td {
padding: 2px 5px;
text-align: center;
border-right: 1px solid #CCC;
@@ -69,26 +62,22 @@
.cr {border-color: #39B642;}
.op {border-color: #C42122;}
-hr
-{
+hr {
clear: both;
border: none;
border-top: 1px solid #CCCCCC;
}
-dt
-{
+dt {
/*font-weight:bold;*/
text-decoration:underline;
}
-#where p
-{
+#where p {
text-align: center;
}
-#where .download
-{
+#where .download {
background: #28AA31;
color: #FFFFFF;
height: 2em;
@@ -98,8 +87,7 @@
border-radius: 0.25em;
}
-pre.example
-{
+pre.example {
background: #E8E8E8;
margin-left: -10px;
padding: 10px;
@@ -475,8 +463,7 @@ <h4 id="doc_generate_options">generate(options)</h4>
<pre class="example">
content = zip.generate({type:"string"});
-for (var c = 0; c &lt; content.length; c++)
-{
+for (var c = 0; c &lt; content.length; c++) {
console.log(content.charCodeAt(c));
// do other things
}</pre>
View
@@ -8,8 +8,7 @@
* Original code can be found here: http://www.onicos.com/staff/iz/amuse/javascript/expert/deflate.txt
*/
-if(!JSZip)
-{
+if(!JSZip) {
throw "JSZip not defined";
}
@@ -1693,3 +1692,6 @@ if(!JSZip.compressions["DEFLATE"]) {
}
})();
+
+// enforcing Stuk's coding style
+// vim: set shiftwidth=3 softtabstop=3:
View
@@ -8,8 +8,7 @@
* Original code can be found here: http://www.onicos.com/staff/iz/amuse/javascript/expert/inflate.txt
*/
-if(!JSZip)
-{
+if(!JSZip) {
throw "JSZip not defined";
}
@@ -776,3 +775,6 @@ if(!JSZip.compressions["DEFLATE"]) {
}
})();
+
+// enforcing Stuk's coding style
+// vim: set shiftwidth=3 softtabstop=3:
Oops, something went wrong.

0 comments on commit 98bb58f

Please sign in to comment.