Skip to content

Commit

Permalink
I had missed lib.js in favor of primitives.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
matasar committed Apr 16, 2010
1 parent ed1673f commit a86771d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion lib.js
@@ -1,2 +1,4 @@
Number.prototype.bm = function(f) { var acc = ""; for(var i = 0; i < this; i++){ acc += i; } return acc; };
Number.prototype.times = function(f) { for(var i = 0; i < this; i++){ f(i); } return this; };
Number.prototype.times = function(f) { for(var i = 0; i < this; i++){ f(i); } return this; };
Number.prototype.primplus = function(y) { return this + y; };

3 changes: 0 additions & 3 deletions primitives.js
@@ -1,4 +1 @@
Number.prototype.primplus = function(y) { return this + y; };
Number.prototype.times = function (fn) { for (var i = 0; i < this; i++) { fn(i) }}

function puts(string) {console.log(string)};
1 change: 1 addition & 0 deletions snooker.html
Expand Up @@ -5,6 +5,7 @@
<body>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="primitives.js"></script>
<script type="text/javascript" src="lib.js"></script>

<script type="text/javascript">
FilesForm = {}
Expand Down

0 comments on commit a86771d

Please sign in to comment.