Changeset 7617
- Timestamp:
- 03/07/08 14:47:20 (5 years ago)
- Location:
- lang/javascript/jsenumerator/trunk
- Files:
-
- 2 modified
-
jsenumerator.js (modified) (1 diff)
-
test.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/jsenumerator/trunk/jsenumerator.js
r7616 r7617 70 70 this.initWithArray([]); 71 71 } else { 72 if (arguments[0] && arguments[0].length) { 73 this.initWithArray(arguments[0]); 74 } else 72 75 if (typeof arguments[0] == "function") { 73 76 this.initWithFunction(arguments[0]); 74 77 } else 75 78 if (typeof arguments[0] == "object") { 76 if (arguments[0].length) {77 this.initWithArray(arguments[0]);78 } else79 79 if (arguments[0] instanceof Enumerator) { 80 80 return arguments[0]; -
lang/javascript/jsenumerator/trunk/test.js
r7616 r7617 168 168 })(1, 2, 3); 169 169 170 expect("nodelist", ["[object HTML DivElement]"], E(document.getElementsByTagName("div")).imap(function (i) {170 expect("nodelist", ["[object HTMLHtmlElement]"], E(document.getElementsByTagName("html")).imap(function (i) { 171 171 return String(i); 172 172 }).take(1));
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)