From bb8362949a29d5288911dfa63918d7e0b2a90268 Mon Sep 17 00:00:00 2001 From: SheetJS Date: Thu, 21 Aug 2014 11:21:59 -0400 Subject: [PATCH] removed trailing whitespaces and commas --- Gruntfile.js | 2 +- dist/jszip.js | 12 ++++++------ lib/index.js | 2 +- lib/nodeBuffer.js | 4 ++-- lib/object.js | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 72ff58c2..b52d7c86 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -78,7 +78,7 @@ module.exports = function(grunt) { browserify: { all: { files: { - 'dist/jszip.js': ['lib/index.js'], + 'dist/jszip.js': ['lib/index.js'] }, options: { bundleOptions: { diff --git a/dist/jszip.js b/dist/jszip.js index 72cee161..51ef5da7 100644 --- a/dist/jszip.js +++ b/dist/jszip.js @@ -498,7 +498,7 @@ Usage: function JSZip(data, options) { // if this constructor is used without `new`, it adds `new` before itself: if(!(this instanceof JSZip)) return new JSZip(data, options); - + // object containing the files : // { // "folder/" : {...}, @@ -588,7 +588,7 @@ module.exports = function(data, options) { (function (Buffer){ 'use strict'; module.exports = function(data, encoding){ - return new Buffer(data, encoding); + return new Buffer(data, encoding); }; module.exports.test = function(b){ return Buffer.isBuffer(b); @@ -898,7 +898,7 @@ var parentFolder = function (path) { * Add a (sub) folder in the current folder. * @private * @param {string} name the folder's name - * @param {boolean=} [createFolders] If true, automatically create sub + * @param {boolean=} [createFolders] If true, automatically create sub * folders. Defaults to false. * @return {Object} the new folder. */ @@ -1357,7 +1357,7 @@ var out = { default : // case "string" : return zip; } - + }, /** @@ -5554,7 +5554,7 @@ function GZheader() { // but leave for few code modifications // - // Setup limits is not necessary because in js we should not preallocate memory + // Setup limits is not necessary because in js we should not preallocate memory // for inflate use constant limit in 65536 bytes // @@ -8979,4 +8979,4 @@ function ZStream() { module.exports = ZStream; },{}]},{},[9]) (9) -}); \ No newline at end of file +}); diff --git a/lib/index.js b/lib/index.js index 52629578..96c3389d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -23,7 +23,7 @@ Usage: function JSZip(data, options) { // if this constructor is used without `new`, it adds `new` before itself: if(!(this instanceof JSZip)) return new JSZip(data, options); - + // object containing the files : // { // "folder/" : {...}, diff --git a/lib/nodeBuffer.js b/lib/nodeBuffer.js index 2668a69e..84694f6a 100644 --- a/lib/nodeBuffer.js +++ b/lib/nodeBuffer.js @@ -1,7 +1,7 @@ 'use strict'; module.exports = function(data, encoding){ - return new Buffer(data, encoding); + return new Buffer(data, encoding); }; module.exports.test = function(b){ return Buffer.isBuffer(b); -}; \ No newline at end of file +}; diff --git a/lib/object.js b/lib/object.js index 24ff16b9..c0bde644 100644 --- a/lib/object.js +++ b/lib/object.js @@ -279,7 +279,7 @@ var parentFolder = function (path) { * Add a (sub) folder in the current folder. * @private * @param {string} name the folder's name - * @param {boolean=} [createFolders] If true, automatically create sub + * @param {boolean=} [createFolders] If true, automatically create sub * folders. Defaults to false. * @return {Object} the new folder. */ @@ -738,7 +738,7 @@ var out = { default : // case "string" : return zip; } - + }, /**