Ox.api: handle missing 'options' argument
This commit is contained in:
parent
69506bde92
commit
c27dc129ce
1 changed files with 2 additions and 0 deletions
|
@ -165,6 +165,8 @@ Ox.api <f> Turns an array into a list API
|
|||
@*/
|
||||
Ox.api = function(items, options) {
|
||||
|
||||
options = options || {};
|
||||
|
||||
var api = {
|
||||
cache: options.cache,
|
||||
enums: options.enums ? parseEnums(options.enums) : {},
|
||||
|
|
Loading…
Reference in a new issue