Permalink
...
Comparing changes
Open a pull request
- 5 commits
- 16 files changed
- 0 commit comments
- 1 contributor
Unified
Split
Showing
with
232 additions
and 258 deletions.
- +2 −2 coffee-script.gemspec
- +7 −0 documentation/index.html.erb
- +1 −2 documentation/js/scope.js
- +2 −4 documentation/js/super.js
- +174 −219 examples/underscore.coffee
- +13 −12 index.html
- +1 −1 lib/coffee-script.rb
- +5 −2 lib/coffee_script/command_line.rb
- +4 −2 lib/coffee_script/narwhal/coffee-script.coffee
- +10 −3 lib/coffee_script/narwhal/js/coffee-script.js
- +1 −1 lib/coffee_script/narwhal/js/launcher.js
- +2 −3 lib/coffee_script/narwhal/js/loader.js
- +1 −1 lib/coffee_script/narwhal/launcher.coffee
- +1 −1 lib/coffee_script/narwhal/loader.coffee
- +7 −4 lib/coffee_script/nodes.rb
- +1 −1 package.json
View
4
coffee-script.gemspec
| @@ -1,7 +1,7 @@ | ||
| Gem::Specification.new do |s| | ||
| s.name = 'coffee-script' | ||
| - s.version = '0.1.5' # Keep version in sync with coffee-script.rb | ||
| - s.date = '2009-12-26' | ||
| + s.version = '0.1.6' # Keep version in sync with coffee-script.rb | ||
| + s.date = '2009-12-27' | ||
| s.homepage = "http://jashkenas.github.com/coffee-script/" | ||
| s.summary = "The CoffeeScript Compiler" | ||
View
7
documentation/index.html.erb
| @@ -471,6 +471,13 @@ coffee --print app/scripts/*.coffee > concatenation.js</pre> | ||
| <h2 id="change_log">Change Log</h2> | ||
| <p> | ||
| + <b class="header" style="margin-top: 20px;">0.1.6</b> | ||
| + Bugfix for running <tt>coffee --interactive</tt> and <tt>--run</tt> | ||
| + from outside of the CoffeeScript directory. Bugfix for nested | ||
| + function/if-statements. | ||
| + </p> | ||
| + | ||
| + <p> | ||
| <b class="header" style="margin-top: 20px;">0.1.5</b> | ||
| Array slice literals and array comprehensions can now both take Ruby-style | ||
| ranges to specify the start and end. JavaScript variable declaration is | ||
View
3
documentation/js/scope.js
| @@ -4,8 +4,7 @@ | ||
| change_numbers = function() { | ||
| var new_num; | ||
| num = 2; | ||
| - new_num = 3; | ||
| - return new_num; | ||
| + return (new_num = 3); | ||
| }; | ||
| new_num = change_numbers(); | ||
| })(); | ||
View
6
documentation/js/super.js
| @@ -6,8 +6,7 @@ | ||
| return alert(this.name + " moved " + meters + "m."); | ||
| }; | ||
| Snake = function(name) { | ||
| - this.name = name; | ||
| - return this.name; | ||
| + return (this.name = name); | ||
| }; | ||
| Snake.__superClass__ = Animal.prototype; | ||
| Snake.prototype = new Animal(); | ||
| @@ -17,8 +16,7 @@ | ||
| return Snake.__superClass__.move.call(this, 5); | ||
| }; | ||
| Horse = function(name) { | ||
| - this.name = name; | ||
| - return this.name; | ||
| + return (this.name = name); | ||
| }; | ||
| Horse.__superClass__ = Animal.prototype; | ||
| Horse.prototype = new Animal(); | ||
Oops, something went wrong.