Inital Commit
[oweals/finalsclub.git] / node_modules / jade / support / coffee-script / documentation / js / overview.js
1 var _i, _len, _result, cubes, list, math, num, number, opposite, race, square;
2 var __slice = Array.prototype.slice;
3 number = 42;
4 opposite = true;
5 if (opposite) {
6   number = -42;
7 }
8 square = function(x) {
9   return x * x;
10 };
11 list = [1, 2, 3, 4, 5];
12 math = {
13   root: Math.sqrt,
14   square: square,
15   cube: function(x) {
16     return x * square(x);
17   }
18 };
19 race = function(winner) {
20   var runners;
21   runners = __slice.call(arguments, 1);
22   return print(winner, runners);
23 };
24 if (typeof elvis !== "undefined" && elvis !== null) {
25   alert("I knew it!");
26 }
27 cubes = (function() {
28   _result = [];
29   for (_i = 0, _len = list.length; _i < _len; _i++) {
30     num = list[_i];
31     _result.push(math.cube(num));
32   }
33   return _result;
34 })();