Permalink
Browse files

Remove all trailing whitespace.

  • Loading branch information...
1 parent c2c9c9c commit e7b4412ee05a045a115a99a70687b21c2cbf109c @jcoglan committed Dec 8, 2012
Showing with 3,966 additions and 3,966 deletions.
  1. +2 −2 CHANGELOG
  2. +4 −4 Jakefile
  3. +6 −6 Rakefile
  4. +21 −21 bin/jsbuild
  5. +13 −13 jake.yml
  6. +8 −8 site/src/layouts/application.haml
  7. +6 −6 site/src/pages/benchmark.haml
  8. +7 −7 site/src/pages/binding.haml
  9. +24 −24 site/src/pages/classes.haml
  10. +14 −14 site/src/pages/classmethods.haml
  11. +67 −67 site/src/pages/command.haml
  12. +11 −11 site/src/pages/comparable.haml
  13. +14 −14 site/src/pages/console.haml
  14. +34 −34 site/src/pages/constantscope.haml
  15. +12 −12 site/src/pages/debugging.haml
  16. +16 −16 site/src/pages/decorator.haml
  17. +22 −22 site/src/pages/deferrable.haml
  18. +148 −148 site/src/pages/enumerable.haml
  19. +25 −25 site/src/pages/enumerator.haml
  20. +21 −21 site/src/pages/equality.haml
  21. +11 −11 site/src/pages/forwardable.haml
  22. +114 −114 site/src/pages/hash.haml
  23. +8 −8 site/src/pages/hooks.haml
  24. +6 −6 site/src/pages/index.haml
  25. +44 −44 site/src/pages/inheritance.haml
  26. +7 −7 site/src/pages/interfaces.haml
  27. +13 −13 site/src/pages/introduction.haml
  28. +20 −20 site/src/pages/kernel.haml
  29. +34 −34 site/src/pages/keywords.haml
  30. +8 −8 site/src/pages/license.haml
  31. +25 −25 site/src/pages/linkedlist.haml
  32. +41 −41 site/src/pages/methodchain.haml
  33. +13 −13 site/src/pages/modifyingmodules.haml
  34. +21 −21 site/src/pages/modules.haml
  35. +29 −29 site/src/pages/observable.haml
  36. +6 −6 site/src/pages/packages.haml
  37. +9 −9 site/src/pages/packages/autoload.haml
  38. +30 −30 site/src/pages/packages/bundling.haml
  39. +9 −9 site/src/pages/packages/customloaders.haml
  40. +20 −20 site/src/pages/packages/introduction.haml
  41. +12 −12 site/src/pages/platforms.haml
  42. +5 −5 site/src/pages/platforms/node.haml
  43. +10 −10 site/src/pages/proxies.haml
  44. +38 −38 site/src/pages/range.haml
  45. +31 −31 site/src/pages/reflection.haml
  46. +77 −77 site/src/pages/set.haml
  47. +15 −15 site/src/pages/singletonmethods.haml
  48. +6 −6 site/src/pages/singletons.haml
  49. +26 −26 site/src/pages/stacktrace.haml
  50. +37 −37 site/src/pages/state.haml
  51. +4 −4 site/src/pages/testing.haml
  52. +27 −27 site/src/pages/testing/assertions.haml
  53. +29 −29 site/src/pages/testing/async.haml
  54. +11 −11 site/src/pages/testing/context.haml
  55. +14 −14 site/src/pages/testing/fakeclock.haml
  56. +69 −69 site/src/pages/testing/introduction.haml
  57. +54 −54 site/src/pages/testing/mocking.haml
  58. +13 −13 site/src/pages/tsort.haml
  59. +39 −39 site/src/pages/upgrade.haml
  60. +15 −15 site/src/stylesheets/application.sass
  61. +1 −1 source/assets/testui.css
  62. +10 −10 source/benchmark.js
  63. +14 −14 source/command.js
  64. +7 −7 source/comparable.js
  65. +48 −48 source/console.js
  66. +7 −7 source/constant_scope.js
  67. +9 −9 source/core/bootstrap.js
  68. +9 −9 source/core/class.js
  69. +1 −1 source/core/interface.js
  70. +11 −11 source/core/kernel.js
  71. +5 −5 source/core/keywords.js
  72. +24 −24 source/core/method.js
  73. +40 −40 source/core/module.js
  74. +6 −6 source/core/utils.js
  75. +5 −5 source/decorator.js
  76. +14 −14 source/deferrable.js
  77. +4 −4 source/dom/builder.js
  78. +5 −5 source/dom/dom.js
  79. +8 −8 source/dom/event.js
  80. +90 −90 source/enumerable.js
  81. +3 −3 source/forwardable.js
  82. +77 −77 source/hash.js
  83. +15 −15 source/linked_list.js
  84. +13 −13 source/method_chain.js
  85. +7 −7 source/observable.js
  86. +25 −25 source/package/config.js
  87. +8 −8 source/package/dsl.js
  88. +2 −2 source/package/loader.js
  89. +5 −5 source/package/loaders/commonjs.js
  90. +18 −18 source/package/loaders/dom.js
  91. +3 −3 source/package/loaders/rhino.js
  92. +2 −2 source/package/loaders/server.js
  93. +2 −2 source/package/loaders/wsh.js
  94. +3 −3 source/package/loaders/xulrunner.js
  95. +81 −81 source/package/package.js
  96. +7 −7 source/proxy.js
  97. +26 −26 source/range.js
  98. +49 −49 source/set.js
  99. +23 −23 source/stack_trace.js
  100. +17 −17 source/state.js
  101. +14 −14 source/test/async_steps.js
  102. +8 −8 source/test/context/context.js
  103. +21 −21 source/test/context/life_cycle.js
  104. +6 −6 source/test/context/shared_behavior.js
  105. +6 −6 source/test/context/suite.js
  106. +7 −7 source/test/context/test.js
  107. +6 −6 source/test/coverage.js
  108. +21 −21 source/test/fake_clock.js
  109. +5 −5 source/test/helpers.js
  110. +14 −14 source/test/mocking/dsl.js
  111. +13 −13 source/test/mocking/matchers.js
  112. +23 −23 source/test/mocking/parameters.js
  113. +38 −38 source/test/mocking/stub.js
  114. +31 −31 source/test/reporters/browser.js
  115. +11 −11 source/test/reporters/buster.js
  116. +3 −3 source/test/reporters/composite.js
  117. +16 −16 source/test/reporters/dot.js
  118. +3 −3 source/test/reporters/error.js
  119. +7 −7 source/test/reporters/exit_status.js
  120. +5 −5 source/test/reporters/json.js
  121. +3 −3 source/test/reporters/phantomjs.js
  122. +11 −11 source/test/reporters/spec.js
  123. +9 −9 source/test/reporters/tap.js
  124. +9 −9 source/test/reporters/test_swarm.js
  125. +8 −8 source/test/reporters/testem.js
  126. +25 −25 source/test/runner.js
  127. +11 −11 source/test/ui/browser.js
  128. +7 −7 source/test/ui/terminal.js
  129. +6 −6 source/test/unit.js
  130. +8 −8 source/test/unit/assertion_message.js
  131. +30 −30 source/test/unit/assertions.js
  132. +3 −3 source/test/unit/error.js
  133. +3 −3 source/test/unit/failure.js
  134. +9 −9 source/test/unit/observable.js
  135. +45 −45 source/test/unit/test_case.js
  136. +12 −12 source/test/unit/test_result.js
  137. +18 −18 source/test/unit/test_suite.js
  138. +12 −12 source/tsort.js
  139. +11 −11 test/airenv/AIRAliases.js
  140. +11 −11 test/airenv/app.xml
  141. +1 −1 test/buster.js
  142. +1 −1 test/console.js
  143. +12 −12 test/examples/async.js
  144. +5 −5 test/examples/benchmarks.js
  145. +2 −2 test/examples/reformat.js
  146. +6 −6 test/examples/tracing.js
  147. +1 −1 test/fixtures/manifest.js
  148. +5 −5 test/runner.js
  149. +112 −112 test/specs/class_spec.js
  150. +51 −51 test/specs/command_spec.js
  151. +18 −18 test/specs/comparable_spec.js
  152. +10 −10 test/specs/console_spec.js
  153. +23 −23 test/specs/constant_scope_spec.js
  154. +10 −10 test/specs/decorator_spec.js
  155. +19 −19 test/specs/deferrable_spec.js
  156. +169 −169 test/specs/enumerable_spec.js
  157. +8 −8 test/specs/forwardable_spec.js
  158. +90 −90 test/specs/hash_spec.js
  159. +7 −7 test/specs/interface_spec.js
  160. +58 −58 test/specs/kernel_spec.js
  161. +35 −35 test/specs/linked_list_spec.js
  162. +25 −25 test/specs/method_chain_spec.js
  163. +7 −7 test/specs/method_spec.js
  164. +93 −93 test/specs/module_spec.js
  165. +21 −21 test/specs/observable_spec.js
  166. +91 −91 test/specs/package_spec.js
  167. +15 −15 test/specs/proxy_spec.js
  168. +27 −27 test/specs/range_spec.js
  169. +66 −66 test/specs/set_spec.js
  170. +7 −7 test/specs/singleton_spec.js
  171. +10 −10 test/specs/state_spec.js
  172. +11 −11 test/specs/test/async_steps_spec.js
  173. +58 −58 test/specs/test/context_spec.js
  174. +19 −19 test/specs/test/fake_clock_spec.js
  175. +85 −85 test/specs/test/mocking_spec.js
  176. +7 −7 test/specs/test/test_spec_helpers.js
  177. +80 −80 test/specs/test/unit_spec.js
  178. +13 −13 test/specs/tsort_spec.js
View
@@ -272,7 +272,7 @@ June 8 2009
* The double inclusion problem is now fixed, i.e. the following
works in JS.Class 2.1:
-
+
A = new JS.Module();
C = new JS.Class({ include: A });
B = new JS.Module({ foo: function() { return 'B#foo' } });
@@ -281,7 +281,7 @@ June 8 2009
new C().foo() // -> 'B#foo'
new D().foo() // -> 'B#foo'
-
+
(See http://eigenclass.org/hiki/The+double+inclusion+problem)
* Ancestor and method lookups are cached for improved performance.
View
@@ -10,18 +10,18 @@ jake_hook :build_complete do |build|
%w[index.js package.json CHANGELOG.txt LICENSE.txt].each do |doc|
FileUtils.cp doc.gsub(/\.txt$/, ''), "#{build.build_directory}/#{doc}"
end
-
+
FileUtils.cp 'README.markdown', "#{build.build_directory}/README.txt"
-
+
build.packages.each do |doc|
FileUtils.cp build.package(doc).build_path(:min), "site/site/javascripts/js.class/#{doc}.js"
end
-
+
[:src, :min].each do |size|
FileUtils.rm_rf "#{build.build_directory}/#{size}/assets"
FileUtils.cp_r "source/assets", "#{build.build_directory}/#{size}/assets"
end
-
+
FileUtils.rm_rf build.build_directory + "/bin"
FileUtils.cp_r "bin", build.build_directory + "/bin"
FileUtils.chmod 0755, build.build_directory + "/bin/jsbuild"
View
@@ -28,7 +28,7 @@ class MethodSet < SortedSet
name = link.text.strip.gsub(/^event\./, '')
add(name) if name =~ /^[a-z][a-zA-Z0-9\_\$]*$/
end
-
+
def import(url, selector)
document(url).search(selector).each(&method(:add_method))
end
@@ -37,18 +37,18 @@ end
namespace :import do
task :method_chain do
methods = MethodSet.new
-
+
MDC_URLS.each { |url| methods.import(url, 'dt a') }
-
+
methods.import(ELEMENT_URL, 'td code a:first-child')
-
+
document(ELEMENT_URL).search('#pageText>p').last.search('a').map do |link|
methods.import(link[:href], 'td code a:first-child')
end
-
+
methods.import(EVENT_URL, 'dt a')
methods.import(STYLE_URL, 'li a')
-
+
p methods.entries
end
end
View
@@ -5,9 +5,9 @@ var fs = require('fs'),
https = require('https'),
path = require('path'),
url = require('url'),
-
+
nopt = require('nopt'),
-
+
options = { manifest: path,
root: path,
external: Boolean,
@@ -16,7 +16,7 @@ var fs = require('fs'),
output: String,
directory: path
},
-
+
shorts = { 'm': '--manifest',
'r': '--root',
'e': '--external',
@@ -26,9 +26,9 @@ var fs = require('fs'),
'o': '--output',
'd': '--directory'
},
-
+
outputs = ['code', 'paths'],
-
+
params = nopt(options, shorts),
include = params.argv.remain.slice(),
dir = new RegExp('^' + path.resolve(params.directory || '.') + '/')
@@ -53,17 +53,17 @@ if (include.length === 0) {
C.bold()
C.puts('\nUsage: jsbuild --manifest MANIFEST --root ROOT [OPTIONS] module1 [module2 ...]')
C.reset()
-
+
C.puts('\nOptions: --manifest, -m : path to JS.Packages manifest script')
C.puts(' --root, -r : directory containing your JavaScripts')
C.puts(' --external, -e : include external scripts from the web')
C.puts(' --no-packages, -P : don\'t include JS.Package system in build')
C.puts(' --bundles, -b : path to bundle definitions file')
C.puts(' --output, -o : select output type: \'code\' or \'paths\'')
C.puts(' --directory, -d : directory for paths to print relative to')
-
+
C.puts('\ne.g. jsbuild -m path/to/js/manifest.js -r path/to/js/ -eP jQuery JS.Set\n')
-
+
process.exit()
}
@@ -72,7 +72,7 @@ HTTP_REGEX = /^https?:\/\//
JS.Package.DSL.file = function(filename) {
if (!HTTP_REGEX.test(filename))
filename = path.join(params.root || '.', filename)
-
+
return JS.Package._getByPath(filename)
}
@@ -87,11 +87,11 @@ var packages = [],
var expand = function(name, list) {
var pkg = JS.Package._getByName(name),
deps = list || []
-
+
pkg._deps.list.forEach(function(p) { expand(p, deps) })
if (deps.indexOf(pkg) === -1) deps.push(pkg)
pkg._uses.list.forEach(function(p) { expand(p, deps) })
-
+
return deps
}
@@ -102,13 +102,13 @@ var array = function(object) {
var expandBundle = function(name) {
var bundle = bundles[name]
-
+
array(bundle.include).forEach(function(p) { expand(p, packages) })
-
+
var expandExcluded = function(excl) {
var exclBundle = bundles[excl]
if (!exclBundle) return expand(excl, excluded)
-
+
array(exclBundle.include).forEach(function(p) { expand(p, excluded) })
array(exclBundle.exclude).forEach(expandExcluded)
}
@@ -119,10 +119,10 @@ var packageFiles = function(packages) {
var files = []
packages.forEach(function(pkg) {
var paths = pkg._loader
-
+
if (!(paths instanceof Array))
die('Cannot bundle ' + pkg + ': no path specified in your manifest')
-
+
files = files.concat(paths.map(function(loader) {
return HTTP_REGEX.test(loader)
? loader
@@ -158,7 +158,7 @@ if (params.packages !== false)
var bundle = function(i) {
if (i >= files.length) return output()
var file = files[i]
-
+
if (HTTP_REGEX.test(file))
bundleRemote(file, i)
else
@@ -169,7 +169,7 @@ var bundleLocal = function(file, i) {
fs.readFile(file, function(error, content) {
if (error)
die('Cannot find file ' + file + ', please check your --root setting')
-
+
source.push(content.toString())
bundle(i + 1)
})
@@ -180,21 +180,21 @@ var bundleRemote = function(file, i) {
console.error('Warning: skipping ' + file + ', pass --external to include it')
return bundle(i + 1)
}
-
+
var uri = url.parse(file),
client = (uri.protocol === 'https:') ? https : http,
port = uri.port || (client === https ? '443' : '80'),
options = {host: uri.hostname, port: port, path: uri.pathname},
body = ''
-
+
var end = function() {
source.push(body)
bundle(i + 1)
}
client.get(options, function(response) {
if (response.statusCode < 200 || response.statusCode >= 300)
die('Request unsuccessful: ' + file)
-
+
response.addListener('data', function(c) { body += c.toString('utf8', 0, c.length) })
response.addListener('close', end)
response.addListener('end', end)
View
@@ -12,7 +12,7 @@ builds:
source_map: src
packages:
-
+
core:
directory: core
files:
@@ -25,20 +25,20 @@ packages:
- keywords
- interface
- singleton
-
+
package-browser:
directory: package
files:
- package
- loaders/dom
- browser
- dsl
-
+
loader-browser:
extends: package-browser
files:
- config
-
+
package:
directory: package
files:
@@ -51,12 +51,12 @@ packages:
- loaders/xulrunner
- loader
- dsl
-
+
loader:
extends: package
files:
- config
-
+
test:
directory: test
files:
@@ -69,10 +69,10 @@ packages:
- unit/test_result
- unit/test_suite
- unit/test_case
-
+
- ui/terminal
- ui/browser
-
+
- reporters/dot
- reporters/spec
- reporters/error
@@ -85,31 +85,31 @@ packages:
- reporters/testem
- reporters/test_swarm
- reporters/composite
-
+
- context/context
- context/life_cycle
- context/shared_behavior
- context/test
- context/suite
-
+
- mocking/stub
- mocking/parameters
- mocking/matchers
- mocking/dsl
-
+
- async_steps
- fake_clock
- coverage
- helpers
- runner
-
+
dom:
directory: dom
files:
- dom
- builder
- event
-
+
benchmark: benchmark
console: console
comparable: comparable
@@ -16,7 +16,7 @@
#download
%a{:href => '/assets/JS.Class.3-0-9.zip', :onclick => "trackDownload('3.0.9')"}
Download v3.0
-
+
%h4 Introduction
%ul
%li
@@ -29,14 +29,14 @@
=link 'Testing tools', '/testing.html'
%li
=link 'License &amp; acknowledgements', '/license.html'
-
+
%h4 Community
%ul
%li
=link 'Mailing list', 'http://groups.google.com/group/jsclass-users'
%li
=link 'GitHub repository', 'http://github.com/jcoglan/js.class'
-
+
%h4 Core reference
%ul
%li
@@ -69,7 +69,7 @@
=link 'Interfaces'
%li
=link 'Singletons'
-
+
%h4 Standard library
%ul
%li
@@ -112,18 +112,18 @@
=link 'State'
%li
=link 'TSort'
-
+
#content
= yield
-
+
#footer
.sub
:textile
_JS.Class_, &copy; 2007&ndash;2012 "James Coglan":http://jcoglan.com.
Released under the MIT license.
-
+
%div.clear
-
+
%script{:type => 'text/javascript'}
:plain
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
Oops, something went wrong.

0 comments on commit e7b4412

Please sign in to comment.