Skip to content

Commit

Permalink
Remove trailing whitespace
Browse files Browse the repository at this point in the history
Feels good dude
  • Loading branch information
sindresorhus committed Aug 23, 2012
1 parent 074b9b8 commit e3ee7df
Show file tree
Hide file tree
Showing 38 changed files with 234 additions and 234 deletions.
4 changes: 2 additions & 2 deletions cli/lib/generators/bbb/all/templates/app/scripts/app.js
Expand Up @@ -34,8 +34,8 @@ function($, _, Backbone) {
$.ajax({ url: app.root + path, async: false }).then(function(contents) {
JST[path] = _.template(contents);
});
}
}

return JST[path];
}
});
Expand Down
2 changes: 1 addition & 1 deletion cli/lib/generators/bbb/all/templates/app/scripts/main.js
Expand Up @@ -22,7 +22,7 @@ function(app, Router) {
$(document).on("click", "a:not([data-bypass])", function(evt) {
// Get the absolute anchor href.
var href = $(this).attr("href");

// If the href exists and is a hash route, run it through Backbone.
if (href && href.indexOf("#") === 0) {
// Stop the default event to ensure the link will not cause a page
Expand Down
Expand Up @@ -119,8 +119,8 @@ var LayoutManager = Backbone.View.extend({
// Custom template render function.
view.render = function(done) {
var viewDeferred = options.deferred();
// Break this callback out so that its not duplicated inside the

// Break this callback out so that its not duplicated inside the
// following safety try/catch.
function renderCallback() {
// Only refresh the view if its not a list item, otherwise it would
Expand Down Expand Up @@ -171,7 +171,7 @@ var LayoutManager = Backbone.View.extend({
if (append) {
// Start with an array if none exists.
partials = this.views[name] = this.views[name] || [];

if (!_.isArray(this.views[name])) {
// Ensure this.views[name] is an array.
partials = this.views[name] = [this.views[name]];
Expand Down Expand Up @@ -257,7 +257,7 @@ var LayoutManager = Backbone.View.extend({

// Create a list of promises to wait on until rendering is done. Since
// this method will run on all children as well, its sufficient for a
// full hierarchical.
// full hierarchical.
var promises = _.map(root.views, function(view) {
// Hoist deferred var, used later on...
var def;
Expand Down Expand Up @@ -512,7 +512,7 @@ var LayoutManager = Backbone.View.extend({
view._remove = view.remove;
view.remove = proto.remove;
}

// Default the prefix to an empty string.
view._prefix = "";

Expand Down
2 changes: 1 addition & 1 deletion cli/lib/generators/bbb/all/templates/test/lib/chai.js
Expand Up @@ -3072,7 +3072,7 @@
return html;
}
};

// Returns true if object is a DOM element.
var isDOMElement = function (object) {
if (typeof HTMLElement === 'object') {
Expand Down
16 changes: 8 additions & 8 deletions cli/lib/generators/bbb/all/templates/test/lib/expect.js
Expand Up @@ -65,7 +65,7 @@

var name = $flags[i]
, assertion = new Assertion(this.obj, name, this)

if ('function' == typeof Assertion.prototype[name]) {
// clone the function, make sure we dont touch the prot reference
var old = this[name];
Expand Down Expand Up @@ -148,7 +148,7 @@
if ('object' == typeof fn && not) {
// in the presence of a matcher, ensure the `not` only applies to
// the matching.
this.flags.not = false;
this.flags.not = false;
}

var name = this.obj.name || 'fn';
Expand Down Expand Up @@ -219,7 +219,7 @@
};

/**
* Assert within start to finish (inclusive).
* Assert within start to finish (inclusive).
*
* @param {Number} start
* @param {Number} finish
Expand Down Expand Up @@ -298,7 +298,7 @@
, 'expected ' + i(this.obj) + ' to be above ' + n);
return this;
};

/**
* Assert string value matches _regexp_.
*
Expand Down Expand Up @@ -359,13 +359,13 @@
} catch (e) {
hasProp = undefined !== this.obj[name]
}

this.assert(
hasProp
, 'expected ' + i(this.obj) + ' to have a property ' + i(name)
, 'expected ' + i(this.obj) + ' to not have a property ' + i(name));
}

if (undefined !== val) {
this.assert(
val === this.obj[name]
Expand Down Expand Up @@ -798,9 +798,9 @@

expect.eql = function eql (actual, expected) {
// 7.1. All identical values are equivalent, as determined by ===.
if (actual === expected) {
if (actual === expected) {
return true;
} else if ('undefined' != typeof Buffer
} else if ('undefined' != typeof Buffer
&& Buffer.isBuffer(actual) && Buffer.isBuffer(expected)) {
if (actual.length != expected.length) return false;

Expand Down
46 changes: 23 additions & 23 deletions cli/lib/generators/bbb/all/templates/test/lib/mocha/mocha.js
Expand Up @@ -32,11 +32,11 @@ require.register = function (path, fn){
require.relative = function (parent) {
return function(p){
if ('.' != p.charAt(0)) return require(p);

var path = parent.split('/')
, segs = p.split('/');
path.pop();

for (var i = 0; i < segs.length; i++) {
var seg = segs[i];
if ('..' == seg) path.pop();
Expand All @@ -52,7 +52,7 @@ require.register("browser/debug.js", function(module, exports, require){

module.exports = function(type){
return function(){

}
};
}); // module: browser/debug.js
Expand Down Expand Up @@ -517,7 +517,7 @@ var Suite = require('../suite')

/**
* BDD-style interface:
*
*
* describe('Array', function(){
* describe('#indexOf()', function(){
* it('should return -1 when not present', function(){
Expand All @@ -529,7 +529,7 @@ var Suite = require('../suite')
* });
* });
* });
*
*
*/

module.exports = function(suite){
Expand Down Expand Up @@ -574,7 +574,7 @@ module.exports = function(suite){
* and callback `fn` containing nested suites
* and/or tests.
*/

context.describe = context.context = function(title, fn){
var suite = Suite.create(suites[0], title);
suites.unshift(suite);
Expand Down Expand Up @@ -654,19 +654,19 @@ var Suite = require('../suite')

/**
* TDD-style interface:
*
*
* exports.Array = {
* '#indexOf()': {
* 'should return -1 when the value is not present': function(){
*
*
* },
*
* 'should return the correct index when the value is present': function(){
*
*
* }
* }
* };
*
*
*/

module.exports = function(suite){
Expand Down Expand Up @@ -726,27 +726,27 @@ var Suite = require('../suite')

/**
* QUnit-style interface:
*
*
* suite('Array');
*
*
* test('#length', function(){
* var arr = [1,2,3];
* ok(arr.length == 3);
* });
*
*
* test('#indexOf()', function(){
* var arr = [1,2,3];
* ok(arr.indexOf(1) == 0);
* ok(arr.indexOf(2) == 1);
* ok(arr.indexOf(3) == 2);
* });
*
*
* suite('String');
*
*
* test('#length', function(){
* ok('foo'.length == 3);
* });
*
*
*/

module.exports = function(suite){
Expand Down Expand Up @@ -789,7 +789,7 @@ module.exports = function(suite){
/**
* Describe a "suite" with the given `title`.
*/

context.suite = function(title){
if (suites.length > 1) suites.shift();
var suite = Suite.create(suites[0], title);
Expand Down Expand Up @@ -827,7 +827,7 @@ var Suite = require('../suite')
* suiteSetup(function(){
*
* });
*
*
* test('should return -1 when not present', function(){
*
* });
Expand Down Expand Up @@ -2544,7 +2544,7 @@ exports = module.exports = Min;

function Min(runner) {
Base.call(this, runner);

runner.on('start', function(){
// clear screen
process.stdout.write('\u001b[2J');
Expand Down Expand Up @@ -3192,7 +3192,7 @@ function XUnit(runner) {
runner.on('pass', function(test){
tests.push(test);
});

runner.on('fail', function(test){
tests.push(test);
});
Expand All @@ -3209,7 +3209,7 @@ function XUnit(runner) {
}, false));

tests.forEach(test);
console.log('</testsuite>');
console.log('</testsuite>');
});
}

Expand Down Expand Up @@ -3454,7 +3454,7 @@ Runnable.prototype.run = function(fn){
}
return;
}

// sync
try {
if (!this.pending) this.fn.call(ctx);
Expand Down Expand Up @@ -4341,7 +4341,7 @@ exports.indexOf = function (arr, obj, start) {

/**
* Array#reduce (<=IE8)
*
*
* @param {Array} array
* @param {Function} fn
* @param {Object} initial value
Expand Down
2 changes: 1 addition & 1 deletion cli/lib/generators/bbb/readme.md
Expand Up @@ -20,7 +20,7 @@ View the Backbone Boilerplate documentation here:

## Build process ##

To use the new and improved build process, please visit the
To use the new and improved build process, please visit the
[grunt-bbb](https://github.com/backbone-boilerplate/grunt-bbb)
plugin repo and follow the instructions to install. Basing your project off
this repo will allow the `bbb` commands to work out-of-the-box.
Expand Up @@ -3072,7 +3072,7 @@
return html;
}
};

// Returns true if object is a DOM element.
var isDOMElement = function (object) {
if (typeof HTMLElement === 'object') {
Expand Down
16 changes: 8 additions & 8 deletions cli/lib/generators/chromeapp/all/templates/test/lib/expect.js
Expand Up @@ -65,7 +65,7 @@

var name = $flags[i]
, assertion = new Assertion(this.obj, name, this)

if ('function' == typeof Assertion.prototype[name]) {
// clone the function, make sure we dont touch the prot reference
var old = this[name];
Expand Down Expand Up @@ -148,7 +148,7 @@
if ('object' == typeof fn && not) {
// in the presence of a matcher, ensure the `not` only applies to
// the matching.
this.flags.not = false;
this.flags.not = false;
}

var name = this.obj.name || 'fn';
Expand Down Expand Up @@ -219,7 +219,7 @@
};

/**
* Assert within start to finish (inclusive).
* Assert within start to finish (inclusive).
*
* @param {Number} start
* @param {Number} finish
Expand Down Expand Up @@ -298,7 +298,7 @@
, 'expected ' + i(this.obj) + ' to be above ' + n);
return this;
};

/**
* Assert string value matches _regexp_.
*
Expand Down Expand Up @@ -359,13 +359,13 @@
} catch (e) {
hasProp = undefined !== this.obj[name]
}

this.assert(
hasProp
, 'expected ' + i(this.obj) + ' to have a property ' + i(name)
, 'expected ' + i(this.obj) + ' to not have a property ' + i(name));
}

if (undefined !== val) {
this.assert(
val === this.obj[name]
Expand Down Expand Up @@ -798,9 +798,9 @@

expect.eql = function eql (actual, expected) {
// 7.1. All identical values are equivalent, as determined by ===.
if (actual === expected) {
if (actual === expected) {
return true;
} else if ('undefined' != typeof Buffer
} else if ('undefined' != typeof Buffer
&& Buffer.isBuffer(actual) && Buffer.isBuffer(expected)) {
if (actual.length != expected.length) return false;

Expand Down

0 comments on commit e3ee7df

Please sign in to comment.