document Ox.break

This commit is contained in:
j 2012-05-22 10:35:35 +02:00
parent 04784630d3
commit 34bf08c445

View file

@ -15,11 +15,14 @@ Ox.avg = function(obj) {
return Ox.sum(obj) / Ox.len(obj); return Ox.sum(obj) / Ox.len(obj);
}; };
/*@
Ox.break <f> end loops by calling Ox.break()
@*/
Ox.break = function() { Ox.break = function() {
throw Ox.BreakError; throw Ox.BreakError;
}; };
Ox.BreakError = new SyntaxError('Illegal My.break() statement'); Ox.BreakError = new SyntaxError('Illegal Ox.break() statement');
/*@ /*@
Ox.clone <f> Returns a (shallow or deep) copy of an object or array Ox.clone <f> Returns a (shallow or deep) copy of an object or array
@ -758,4 +761,4 @@ Ox.walk = function(obj, fn) {
fn(val, key, obj); fn(val, key, obj);
Ox.walk(obj[key], fn); Ox.walk(obj[key], fn);
}); });
}; };