summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/prototype/enumerable.js
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/Javascripts/prototype/enumerable.js')
-rw-r--r--framework/Web/Javascripts/prototype/enumerable.js6
1 files changed, 3 insertions, 3 deletions
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;