Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

sequence

  • Loading branch information...
commit ef2e6855b151781f8bba80d8ec875ebf56647d0d 1 parent 0a59d70
authored March 20, 2013

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  jscheck.js
12  jscheck.js
... ...
@@ -1,6 +1,6 @@
1 1
 // jscheck.js
2 2
 // Douglas Crockford
3  
-// 2012-06-06
  3
+// 2013-03-19
4 4
 
5 5
 // Public Domain
6 6
 
@@ -658,11 +658,11 @@ var JSC = (function () {
658 658
                 return jsc;
659 659
             },
660 660
             resolve: resolve,
661  
-            sequence: function (array) {
662  
-                var i = -1;
663  
-                if (arguments.length > 1) {
664  
-                    array = slice.call(arguments, 0);
665  
-                }
  661
+            sequence: function (seq) {
  662
+                var array = arguments.length > 1
  663
+                        ? slice.call(arguments, 0)
  664
+                        : seq,
  665
+                    i = -1;
666 666
                 return function () {
667 667
                     i += 1;
668 668
                     if (i >= array.length) {

0 notes on commit ef2e685

Please sign in to comment.
Something went wrong with that request. Please try again.