From 34bf08c445b383fac1b7b14983e85c3d626416af Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 22 May 2012 10:35:35 +0200 Subject: [PATCH] document Ox.break --- source/Ox/js/Collection.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 +};