diff --git a/source/Ox/js/Collection.js b/source/Ox/js/Collection.js index 6499b9cd..c7ba9dac 100644 --- a/source/Ox/js/Collection.js +++ b/source/Ox/js/Collection.js @@ -15,11 +15,14 @@ Ox.avg = function(obj) { return Ox.sum(obj) / Ox.len(obj); }; +/*@ +Ox.break end loops by calling Ox.break() +@*/ Ox.break = function() { throw Ox.BreakError; }; -Ox.BreakError = new SyntaxError('Illegal My.break() statement'); +Ox.BreakError = new SyntaxError('Illegal Ox.break() statement'); /*@ Ox.clone Returns a (shallow or deep) copy of an object or array @@ -758,4 +761,4 @@ Ox.walk = function(obj, fn) { fn(val, key, obj); Ox.walk(obj[key], fn); }); -}; \ No newline at end of file +};