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);
};
/*@
Ox.break <f> 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 <f> Returns a (shallow or deep) copy of an object or array