diff --git a/source/Ox/js/JavaScript.js b/source/Ox/js/JavaScript.js index e365f9b5..53603f41 100644 --- a/source/Ox/js/JavaScript.js +++ b/source/Ox/js/JavaScript.js @@ -52,7 +52,7 @@ Ox.doc = (function() { a: 'array', b: 'boolean', d: 'date', e: 'element', f: 'function', n: 'number', o: 'object', r: 'regexp', s: 'string', - u: 'undefined', '*': 'any', '!': 'event' + u: 'undefined', '*': 'value', '!': 'event' }; function decodeLinebreaks(match, submatch) { return (submatch || match).replace(/\u21A9/g, '\n'); @@ -225,12 +225,10 @@ Ox.doc = (function() { } }); function unwrap(str) { - return (isArray = /^\[.+\]$/.test(str)) ? - str = str.substr(1, str.length - 2) : str; + return (isArray = /^\[.+\]$/.test(str)) ? Ox.sub(str, 1, -1) : str; } function wrap(str) { - return isArray ? - 'array[' + str + (str != 'any' ? 's' : '') + ']' : str; + return isArray ? '[' + str + 's' + ']' : str; } return ret; }