Commit graph

353 commits

Author SHA1 Message Date
rolux
38016aa06b Ox.doc: add tests; Ox.test: add documentation 2012-05-29 13:48:54 +02:00
rolux
c5fdc1ab39 simplify escapeRegExp regexp 2012-05-29 12:59:41 +02:00
rolux
7dd9169b3f Ox.fallback -> Ox.polyfill 2012-05-29 12:20:50 +02:00
rolux
8cd27bca2f 'null' and 'undefined' are primitives, too 2012-05-29 12:12:54 +02:00
rolux
2b592a8f2d add comment 2012-05-28 15:53:38 +02:00
rolux
a80534a1bd Ox.$.bind -> Ox.$.on, Ox.$.unbind -> Ox.$.off 2012-05-28 15:53:10 +02:00
rolux
3208ab35b9 improved test 2012-05-28 15:52:27 +02:00
rolux
8210a0c5cd fix a bug in sort, rename vars, re-enable Ox.api documentation 2012-05-28 07:52:46 +02:00
rolux
01493c1fe5 re-order methods 2012-05-27 23:17:40 +02:00
rolux
c09ef8b2b6 add a fixme and a semicolon 2012-05-27 23:17:02 +02:00
rolux
3fa59712c8 fix a potential bug in Ox.decodeBase32 2012-05-27 23:16:35 +02:00
rolux
9d26a4b6c3 add tests 2012-05-27 23:14:59 +02:00
rolux
b6411d485a off by one in Ox.encodeBase26 2012-05-27 22:59:43 +02:00
rolux
f030596468 remove Ox.TYPES 2012-05-27 22:09:52 +02:00
rolux
30e59f5538 when passing an array to Ox.values, return a clone, not the original array 2012-05-27 22:08:08 +02:00
rolux
948437b535 in Ox.doc, fix item.line; in Ox.tokenize, make line and column start at 1, not 0 2012-05-27 21:53:02 +02:00
rolux
51edb6b82a add missing semicolons 2012-05-27 21:33:36 +02:00
rolux
b9f7490436 improve test 2012-05-27 21:32:08 +02:00
rolux
45942cc3f2 fix Ox.isEqual(-0, +0), update tests 2012-05-27 18:59:40 +02:00
rolux
8612218011 remove print statement, make slow tests faster 2012-05-27 18:46:59 +02:00
rolux
b44b2da4d2 use simplified async test syntax 2012-05-27 18:44:00 +02:00
rolux
ba4086bc55 Ox.noop: call the last (not the first) argument in case it is a function - this way it can be used as an async iterator 2012-05-27 18:43:12 +02:00
rolux
a811f29837 add test 2012-05-27 18:41:14 +02:00
rolux
f3b0bb6c86 simplify async test syntax, allow for files with ?random suffix 2012-05-27 18:40:51 +02:00
rolux
f996a24ce2 don't require async tests to also return synchronously 2012-05-27 17:00:18 +02:00
rolux
54694e3d7e add async test for Ox.encodeDeflate 2012-05-27 16:54:50 +02:00
rolux
b4bb926c0c move Ox.parseDuration to String.js 2012-05-27 16:53:23 +02:00
rolux
6a2ac97bec in Ox.test, allow for async tests; in Ox.doc, rename the 'examples' property to 'tests' 2012-05-27 16:52:48 +02:00
rolux
6e7743efd3 move Ox.parseDuration to String.js 2012-05-27 16:51:49 +02:00
rolux
a34c406d78 Date.js: add the missing date argument to Ox.getTimezoneOffset (the current timezone's offset may have been different in the past); return '+0000', not '-0000', in Ox.getTimezoneOffsetString; correct a test for Ox.makeDate 2012-05-27 15:05:24 +02:00
rolux
4b8c1a7d6b Ox.formatDate: better tests for '%s' and '%+', fix '%s', '%Z' and '%z' 2012-05-27 15:01:22 +02:00
rolux
707899b61c add test 2012-05-27 13:42:55 +02:00
rolux
ccae6e4997 reorder regexp, add test 2012-05-27 13:40:19 +02:00
rolux
cc29f8f832 in Ox.sanitizeHTML, allow mailto: links 2012-05-27 13:28:08 +02:00
rolux
17983efc47 in Ox.sanitizeHTML, fix a bug with adding links 2012-05-27 13:11:49 +02:00
rolux
c41afd2f5d Ox.parseHTML -> Ox.sanitizeHTML, Ox.encodeHTML -> Ox.encodeHTMLEntities, Ox.decodeHTML -> Ox.decodeHTMLEntities 2012-05-27 12:40:02 +02:00
rolux
40d1d021d4 remove Ox.encodeHTML and Ox.decodeHTML; move Ox.encodeHTMLEntities and Ox.decodeHTMLEntities to HTML.js 2012-05-27 12:37:09 +02:00
rolux
b93750e325 replace Ox.parseEmailAddresses and Ox.parseURLs with Ox.addLinks; rename Ox.parseHTML to Ox.sanitizeHTML; add Ox.normalizeHTML; update Ox.encodeHTMLEntities and Ox.decodeHTMLEntities so that they also cover the previous Ox.encodeHTML and Ox.decodeHTML 2012-05-27 12:36:16 +02:00
rolux
f94395d652 move Ox.parseURL to String.js and Ox.highlightHTML to HTML.js 2012-05-27 12:31:09 +02:00
rolux
68c06a76bf fix Ox.replaceRegExp 2012-05-26 23:15:09 +02:00
j
61e05f4f86 fix object stringify 2012-05-26 15:47:41 +00:00
rolux
6169a4e6ec in JSON.parse, throw original error 2012-05-26 15:09:57 +02:00
rolux
f37c60b31a json dates have milliseconds 2012-05-26 15:05:35 +02:00
rolux
5c2842e0d4 add Ox.splice 2012-05-26 15:05:11 +02:00
rolux
037685e738 json dates are utc 2012-05-26 14:42:59 +02:00
rolux
12ed2c93fc fix #799: use '(function() {}())', not '(function() {})()' 2012-05-26 14:38:45 +02:00
rolux
5bfc555b9e add Ox.fallback.JSON 2012-05-26 14:33:50 +02:00
rolux
d9c69a0975 improve performance of DocPanel by returning tokens (not source) from Ox.doc and making Ox.SyntaxHighlighter accept tokens 2012-05-26 13:11:06 +02:00
rolux
6b12776ed9 update docs, add tests 2012-05-26 13:02:50 +02:00
rolux
6c98a82800 add Ox.KEYWORDS 2012-05-26 12:55:20 +02:00
rolux
5a2ecca0f1 improve Ox.tokenize, add Ox.identify 2012-05-26 12:54:52 +02:00
rolux
08aedd34fd update docs 2012-05-26 00:44:21 +02:00
rolux
9ffe48b526 move comment out of docs 2012-05-26 00:42:32 +02:00
rolux
5086c5da90 test for undefined 2012-05-26 00:20:43 +02:00
rolux
65c070d6b6 update test, add comments 2012-05-26 00:18:50 +02:00
rolux
463c9d9e90 rename vars 2012-05-26 00:18:08 +02:00
rolux
93cefc518a add a test 2012-05-26 00:17:32 +02:00
rolux
b4c0060861 better Ox.minify 2012-05-26 00:02:28 +02:00
j
5fa84fc9af remove trailing commas 2012-05-25 21:59:48 +00:00
j
aa8f4133be IE8 fixes 2012-05-25 21:42:10 +00:00
rolux
12dcdf13fc fix Ox.isEqual 2012-05-25 23:00:28 +02:00
rolux
c481889f3a typo 2012-05-25 22:30:17 +02:00
rolux
735b47ca8d update comment 2012-05-25 22:27:39 +02:00
rolux
b2cae84ca9 rename vars 2012-05-25 21:25:48 +02:00
rolux
5ad848c563 fix Ox.typeOf 2012-05-25 21:19:27 +02:00
rolux
f46ff46da8 re-insert closure 2012-05-25 21:13:11 +02:00
rolux
a956c8b7e1 typo 2012-05-25 21:09:52 +02:00
rolux
9aca80c3cb add nodelist type check 2012-05-25 21:08:29 +02:00
rolux
e1192fd45e use Ox.filter 2012-05-25 19:46:27 +02:00
rolux
80549fe4e2 handle FF 3.6 arguments 'object' 2012-05-25 19:45:07 +02:00
rolux
c8cc037ef6 in Ox.wrap, iterate over Ox.methods(Ox) 2012-05-25 19:28:39 +02:00
rolux
c56b7cc9ed fix a bug in Ox.test 2012-05-25 19:28:17 +02:00
rolux
dfbbcd113b handle FF 3.6 2012-05-25 19:09:25 +02:00
rolux
fa1b2346ef minor change 2012-05-25 19:07:40 +02:00
rolux
fe8031578a remove newline 2012-05-25 18:33:37 +02:00
rolux
873dc2e550 use global, not window 2012-05-25 18:33:12 +02:00
rolux
8a7e0dff11 don't eval tests if there is only a script tag 2012-05-25 18:32:54 +02:00
j
eb9cd1e397 IE fixes 2012-05-25 16:28:05 +00:00
rolux
d83046460f fix window.console.log for IE8/IE9 2012-05-25 18:03:02 +02:00
rolux
20564c7fab reordering functions 2012-05-25 17:46:54 +02:00
rolux
b2f392a2b5 add Array.isArray 2012-05-25 17:45:01 +02:00
rolux
2f5a99a88f add Function.prototype.bind and window.console.log.apply 2012-05-25 17:40:21 +02:00
rolux
67fcca7304 in Ox.typeOf, handie IE nodelist (htmlcollection) 2012-05-25 17:39:37 +02:00
rolux
9d4128c787 add tests 2012-05-25 16:25:41 +02:00
rolux
4c2199a820 update tests 2012-05-25 16:25:35 +02:00
rolux
aebd6aacff add Array.prototype.every and Array.prototype.some 2012-05-25 15:24:27 +02:00
rolux
223323ac82 add Array.prototype.reduceRight 2012-05-25 15:16:21 +02:00
rolux
d8a88c7f47 add Array.prototype.lastIndexOf 2012-05-25 14:49:47 +02:00
rolux
68ff06af2a use native ''.trim; rename vars 2012-05-25 14:32:17 +02:00
rolux
e480d87b34 add String.prototype.trim 2012-05-25 14:16:51 +02:00
rolux
e47f826329 minor cleanup 2012-05-25 13:42:33 +02:00
rolux
b1ff236b3f rename vars 2012-05-25 13:42:25 +02:00
rolux
84050d67a3 rename vars 2012-05-25 13:32:57 +02:00
rolux
95bfdf9b4d rename vars; improved Ox.typeOf patch for Mobile Safari 2012-05-25 13:00:40 +02:00
rolux
2dbb61c103 rename vars; in Ox.formatDimensions, use multiplication sign; more efficient version of Ox.parseDuration 2012-05-25 12:19:04 +02:00
rolux
a37949094d rename vars; more efficient version of Ox.formatDate 2012-05-25 12:08:20 +02:00
rolux
f2be6ebcc0 typo 2012-05-25 11:44:25 +02:00
rolux
e73b7efc2f add space 2012-05-25 11:44:05 +02:00
rolux
bf02d50909 fix a bug in Ox.decodeDeflate (slice(1,-0) returns '') 2012-05-25 11:43:38 +02:00
rolux
12296c41db add space 2012-05-25 11:41:51 +02:00