From a3096eab916b7edea66559f6bb99828d1dbc29fd Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Fri, 30 Jan 2015 11:14:03 -0500 Subject: [PATCH] #3819 changelog docs --- documentation/index.html.js | 2 + documentation/js/classes.js | 12 +++--- documentation/js/overview.js | 4 +- documentation/js/patterns_and_splats.js | 4 +- documentation/js/splats.js | 4 +- index.html | 50 +++++++++++++------------ 6 files changed, 40 insertions(+), 36 deletions(-) diff --git a/documentation/index.html.js b/documentation/index.html.js index 8858d58e..d6d2ac42 100644 --- a/documentation/index.html.js +++ b/documentation/index.html.js @@ -1216,6 +1216,8 @@ Expressions
  • Changed strategy for the generation of internal compiler variable names. + Note that this means that @example function parameters are no longer + available as naked example variables within the function body.
  • Fixed REPL compatibility with latest versions of Node and Io.js. diff --git a/documentation/js/classes.js b/documentation/js/classes.js index ee5e369c..f129110a 100644 --- a/documentation/js/classes.js +++ b/documentation/js/classes.js @@ -1,11 +1,11 @@ // Generated by CoffeeScript 1.9.0 var Animal, Horse, Snake, sam, tom, - __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, - __hasProp = {}.hasOwnProperty; + _extends = function(child, parent) { for (var key in parent) { if (_hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, + _hasProp = {}.hasOwnProperty; Animal = (function() { - function Animal(_at_name) { - this.name = _at_name; + function Animal(_name) { + this.name = _name; } Animal.prototype.move = function(meters) { @@ -17,7 +17,7 @@ Animal = (function() { })(); Snake = (function(_super) { - __extends(Snake, _super); + _extends(Snake, _super); function Snake() { return Snake.__super__.constructor.apply(this, arguments); @@ -33,7 +33,7 @@ Snake = (function(_super) { })(Animal); Horse = (function(_super) { - __extends(Horse, _super); + _extends(Horse, _super); function Horse() { return Horse.__super__.constructor.apply(this, arguments); diff --git a/documentation/js/overview.js b/documentation/js/overview.js index 4e6cf4cb..2703bc08 100644 --- a/documentation/js/overview.js +++ b/documentation/js/overview.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript 1.9.0 var cubes, list, math, num, number, opposite, race, square, - __slice = [].slice; + _slice = [].slice; number = 42; @@ -26,7 +26,7 @@ math = { race = function() { var runners, winner; - winner = arguments[0], runners = 2 <= arguments.length ? __slice.call(arguments, 1) : []; + winner = arguments[0], runners = 2 <= arguments.length ? _slice.call(arguments, 1) : []; return print(winner, runners); }; diff --git a/documentation/js/patterns_and_splats.js b/documentation/js/patterns_and_splats.js index e80bf73a..2f071632 100644 --- a/documentation/js/patterns_and_splats.js +++ b/documentation/js/patterns_and_splats.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript 1.9.0 var close, contents, open, tag, _i, _ref, - __slice = [].slice; + _slice = [].slice; tag = ""; -_ref = tag.split(""), open = _ref[0], contents = 3 <= _ref.length ? __slice.call(_ref, 1, _i = _ref.length - 1) : (_i = 1, []), close = _ref[_i++]; +_ref = tag.split(""), open = _ref[0], contents = 3 <= _ref.length ? _slice.call(_ref, 1, _i = _ref.length - 1) : (_i = 1, []), close = _ref[_i++]; diff --git a/documentation/js/splats.js b/documentation/js/splats.js index 8404139c..42f614da 100644 --- a/documentation/js/splats.js +++ b/documentation/js/splats.js @@ -1,12 +1,12 @@ // Generated by CoffeeScript 1.9.0 var awardMedals, contenders, gold, rest, silver, - __slice = [].slice; + _slice = [].slice; gold = silver = rest = "unknown"; awardMedals = function() { var first, others, second; - first = arguments[0], second = arguments[1], others = 3 <= arguments.length ? __slice.call(arguments, 2) : []; + first = arguments[0], second = arguments[1], others = 3 <= arguments.length ? _slice.call(arguments, 2) : []; gold = first; silver = second; return rest = others; diff --git a/index.html b/index.html index 5c4dd883..07bb9927 100644 --- a/index.html +++ b/index.html @@ -151,7 +151,7 @@ alert "I knew it!" if e # Array comprehensions: cubes = (math.cube num for num in list)
    var cubes, list, math, num, number, opposite, race, square,
    -  __slice = [].slice;
    +  _slice = [].slice;
     
     number = 42;
     
    @@ -177,7 +177,7 @@ math = {
     
     race = function() {
       var runners, winner;
    -  winner = arguments[0], runners = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
    +  winner = arguments[0], runners = 2 <= arguments.length ? _slice.call(arguments, 1) : [];
       return print(winner, runners);
     };
     
    @@ -195,7 +195,7 @@ cubes = (functionreturn _results;
     })();
     
    load
    load
    load
    run: contents.join("")

    Expansion can be used to retrieve elements from the end of an array without having to assign the rest of its values. It works in function parameter lists as well. @@ -2508,6 +2508,8 @@ task('build:parser', 'rebuild t

  • Changed strategy for the generation of internal compiler variable names. + Note that this means that @example function parameters are no longer + available as naked example variables within the function body.
  • Fixed REPL compatibility with latest versions of Node and Io.js.