From 9c9a2d731fea9679f65904a3a6b72dd78b4253a4 Mon Sep 17 00:00:00 2001 From: wei <> Date: Mon, 9 Jan 2006 03:40:59 +0000 Subject: Update library --- framework/Web/Javascripts/prototype/enumerable.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/Web/Javascripts/prototype/enumerable.js') diff --git a/framework/Web/Javascripts/prototype/enumerable.js b/framework/Web/Javascripts/prototype/enumerable.js index edeb297b..78afa842 100644 --- a/framework/Web/Javascripts/prototype/enumerable.js +++ b/framework/Web/Javascripts/prototype/enumerable.js @@ -20,8 +20,8 @@ var Enumerable = { all: function(iterator) { var result = true; this.each(function(value, index) { - if (!(result &= (iterator || Prototype.K)(value, index))) - throw $break; + result = result && !!(iterator || Prototype.K)(value, index); + if (!result) throw $break; }); return result; }, @@ -29,7 +29,7 @@ var Enumerable = { any: function(iterator) { var result = true; this.each(function(value, index) { - if (result &= (iterator || Prototype.K)(value, index)) + if (result = !!(iterator || Prototype.K)(value, index)) throw $break; }); return result; -- cgit v1.2.3