Skip to content

Commit

Permalink
Remove trailing whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoglan committed Jun 30, 2013
1 parent 85705ce commit 76e9df7
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion site/src/pages/enumerator.haml
Expand Up @@ -10,7 +10,7 @@

// In CommonJS
var Enumerator = require('jsclass/src/enumerable').Enumerator;</pre>

Most methods in the @Enumerable@ API that take an iteration function will
return an @Enumerator@ if called without said function. The @Enumerator@
encapsulates the object being iterated over, the iteration method used and any
Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/methodchain.haml
Expand Up @@ -3,13 +3,13 @@

@MethodChain@ provides a mechanism for storing a sequence of method calls
and then executing that sequence on any object you like.

<pre>// In the browser
JS.require('JS.MethodChain', function(MethodChain) { ... });

// In CommonJS
var MethodChain = require('jsclass/src/method_chain').MethodChain;</pre>

Here's a quick example:

<pre>var chain = new MethodChain();
Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/observable.haml
Expand Up @@ -5,13 +5,13 @@
pattern":http://en.wikipedia.org/wiki/Observer_pattern (also known as
'publish/subscribe'), modelled on Ruby's "@Observable@
module":http://ruby-doc.org/core/classes/Observable.html.

<pre>// In the browser
JS.require('JS.Observable', function(Observable) { ... });

// In CommonJS
var Observable = require('jsclass/src/observable').Observable;</pre>

In JavaScript, this pattern can be made more flexible due to the fact that
functions are first-class objects, and are easier to work with than lambdas
and procs in Ruby. In this implementation, the listeners/observers are
Expand Down
8 changes: 4 additions & 4 deletions site/src/pages/platforms/node.haml
Expand Up @@ -11,16 +11,16 @@
@require()@ function.

<pre>// Using JS.require()

var JS = require('jsclass');

JS.require('JS.Set', function(Set) {
var s = new Set([1,2,3]);
// ...
});


// Using require()
var Set = require('jsclass/src/set');
var s = new Set([1,2,3]);</pre>
4 changes: 2 additions & 2 deletions site/src/pages/range.haml
Expand Up @@ -4,13 +4,13 @@
The @Range@ class is used to represent intervals - sequences with a start and
end value. It is directly based on Ruby's
"@Range@":http://ruby-doc.org/core/classes/Range.html class.

<pre>// In the browser
JS.require('JS.Range', function(Range) { ... });

// In CommonJS
var Range = require('jsclass/src/range').Range;</pre>

A @Range@ may be constructed using integers, strings, or any type of object
that responds to the @succ()@ method. Ranges are a lightweight way to
represent sequences of objects, and as collections they respond to all the
Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/tsort.haml
Expand Up @@ -4,13 +4,13 @@
@TSort@ is a JavaScript version of Ruby's @TSort@ module, which provides
"topological sort":http://en.wikipedia.org/wiki/Topological_sorting capability
to data structures.

<pre>// In the browser
JS.require('JS.TSort', function(TSort) { ... });

// In CommonJS
var TSort = require('jsclass/src/tsort').TSort;</pre>

The canonical example of this is determining how a set of
dependent tasks should be sorted such that each task comes after those it
depends on in the list. One way to represent this information may be as a task
Expand Down
2 changes: 1 addition & 1 deletion source/console/base.js
Expand Up @@ -14,7 +14,7 @@ Console.extend({
coloring: function() {
return !this.envvar(Console.NO_COLOR);
},

echo: function(string) {
if (typeof console !== 'undefined') return console.log(string);
if (typeof print === 'function') return print(string);
Expand Down
2 changes: 1 addition & 1 deletion source/test/reporters/tap.js
Expand Up @@ -9,7 +9,7 @@ Test.Reporters.extend({
if (JS.indexOf(parts, this.HOSTNAME) >= 0) return new this(options);
}
},

include: Console,

startSuite: function(event) {
Expand Down

0 comments on commit 76e9df7

Please sign in to comment.