document Ox.break
This commit is contained in:
parent
04784630d3
commit
34bf08c445
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue