Changeset 4942
- Timestamp:
- 09/03/06 22:26:50 (2 years ago)
- Files:
-
- spinoffs/prototype/CHANGELOG (modified) (1 diff)
- spinoffs/prototype/Rakefile (modified) (1 diff)
- spinoffs/prototype/src/enumerable.js (modified) (1 diff)
- spinoffs/prototype/src/range.js (modified) (1 diff)
- spinoffs/prototype/test/unit/enumerable.html (modified) (2 diffs)
- spinoffs/prototype/test/unit/range.html (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinoffs/prototype/CHANGELOG
r4941 r4942 1 1 *SVN* 2 3 * Fix issues with Enumerable.any, ObjectRange.toArray, added unit tests, fixes #4419 [miyamuko, Thomas Fuchs] 2 4 3 5 * Fix two instances of unneccesarily redeclared variables, fixes #5229 [Thomas Fuchs] spinoffs/prototype/Rakefile
r4861 r4942 42 42 43 43 t.run("/test/unit/enumerable.html") 44 t.run("/test/unit/range.html") 44 45 t.run("/test/unit/string.html") 45 46 t.run("/test/unit/dom.html") spinoffs/prototype/src/enumerable.js
r4181 r4942 28 28 29 29 any: function(iterator) { 30 var result = true;30 var result = false; 31 31 this.each(function(value, index) { 32 32 if (result = !!(iterator || Prototype.K)(value, index)) spinoffs/prototype/src/range.js
r3362 r4942 10 10 _each: function(iterator) { 11 11 var value = this.start; 12 do{12 while (this.include(value)) { 13 13 iterator(value); 14 14 value = value.succ(); 15 } while (this.include(value));15 } 16 16 }, 17 17 spinoffs/prototype/test/unit/enumerable.html
r4181 r4942 76 76 77 77 testAny: function() {with(this) { 78 assert(!([].any())); 79 78 80 assert([true, true, true].any()); 79 81 assert([true, false, false].any()); … … 89 91 90 92 testAll: function() {with(this) { 93 assert([].all()); 94 91 95 assert([true, true, true].all()); 92 96 assert(![true, false, false].all());