Commit graph

625 commits

Author SHA1 Message Date
rolux
29950d2a10 fix a bug where events would appear twice on a DocPage 2013-11-16 20:46:57 +01:00
rolux
3005d4a4aa cosmetic changes 2013-11-16 16:16:04 +01:00
rolux
eb4808d4c1 Ox.queue: add 'cancel' and 'reset' (=cancel+clear) methods 2013-11-16 16:13:41 +01:00
rolux
3cbacd85ff cosmetic changes 2013-11-11 14:17:39 +01:00
rolux
85ef28078b update Ox.encodeEmailAddress 2013-11-11 14:17:09 +01:00
j
fee4339d11 rewrite sanitizeHTML to support global attributes 2013-11-10 21:59:36 +00:00
rolux
25a5b9d712 cosmetic changes 2013-11-08 18:56:29 +01:00
rolux
2fc8c3094d Ox.queue: add clear method, cleanup documentation 2013-10-29 14:34:15 +01:00
j
42fa5a7a3c minify does not like comments without comment 2013-10-25 12:38:11 +00:00
j
e6eb5ea1c7 allow iframes 2013-10-24 16:39:26 +00:00
j
e1d71b27bc only force reload in debug mode, use version otherwise 2013-09-05 11:09:30 +00:00
rlx
f16bbebfd4 fix a bug in Ox.decodeURI/Ox.decodeURIComponent 2013-08-27 09:07:17 +00:00
rlx
0f5d475c78 fix a bug in Ox.decodeUTF8; move Ox.decodeURI/Ox.decodeURIComponent to encoding module 2013-08-27 08:56:07 +00:00
j
0c76680864 add more html5 tags, fixes #1444 2013-08-27 08:52:22 +00:00
rlx
7693079b8c Ox.decodeURI/Ox.decodeURIComponent: replace all '%' with '%25' that are not part of valid UTF8 sequence (fixes #1841) 2013-08-26 23:18:05 +00:00
rlx
c5a8d7a79e Ox.decodeURI/Ox.decodeURIComponent: handle multi-byte escapes 2013-08-14 20:00:14 +00:00
rlx
51215c1cbe add and use Ox.decodeURI and Ox.decodeURIComponent 2013-08-14 18:53:13 +00:00
rlx
df1bb73364 fix Ox.parseDuration for cases where duration includes days 2013-08-01 08:55:14 +00:00
j
34894f8d29 add first version of arabic locale 2013-07-28 17:37:17 +02:00
rolux
e7415059f0 formatDuration: use Math.abs(seconds) 2013-07-24 16:04:59 +02:00
rlx
e2be60c762 fix Ox.formatString 2013-07-22 17:49:50 +00:00
rlx
c4d2bb7a3d add Ox.nextValue 2013-07-18 12:52:47 +00:00
j
a5a6eac2c5 Ox.getVideoFormat returns one format, update documentation, fixes #1634 2013-07-10 14:36:51 +00:00
rolux
564603a20e cleanup getVideoFormat and getVideoInfo 2013-07-10 01:32:08 +02:00
rolux
b0f9558845 cleanup Ox.queue 2013-07-10 01:27:25 +02:00
j
708aff64e4 add Ox.getVideoInfo, move Ox.UI.getVideoFormat to Ox.getVideoFormat 2013-07-09 14:30:35 +00:00
j
807844c836 Ox.cache async should call callback always async 2013-07-09 14:29:14 +00:00
j
c7eaee0794 add Ox.queue 2013-07-09 14:28:23 +00:00
rolux
4950898b34 some more tabs to spaces 2013-06-02 22:19:36 +02:00
rolux
064c40461e cosmetic changes 2013-06-02 22:15:55 +02:00
rolux
fc1192f156 Ox.Async: allow for passing false to serialForEach callback (break); allow for ommiting final callback of forEach methods; improve tests 2013-06-01 15:25:37 +02:00
j
9a2c7c7239 support loading Ox.js?\d+ to get new version 2013-05-31 21:16:24 +00:00
rolux
c99316916c add Ox.numberOf: sugar for Ox.len(Ox.filter(collection, test)) 2013-05-26 11:50:37 +02:00
rolux
4b01e4984b add Ox.remove: sugar for array.splice(array.indexOf(element), 1) 2013-05-25 14:24:39 +02:00
rolux
03850ee600 fix syntax error and add missing space in test results (formatDate, localized dates) 2013-05-25 14:23:12 +02:00
rolux
755d1d8a61 fix Ox.setLocale 2013-05-09 22:35:40 +02:00
rolux
dbc971d1c9 fix Ox.setLocale 2013-05-09 22:32:50 +02:00
rolux
50a845fa29 fix Ox.getAsync 2013-05-09 22:32:19 +02:00
rolux
7f6bb6a318 add Ox.getLocale 2013-05-09 21:20:09 +02:00
rolux
8aef1fb7c0 remove unused function in Ox.load 2013-05-09 20:12:32 +02:00
rolux
1e056171e6 improved check to see if a module is present 2013-05-09 19:07:54 +02:00
rolux
ad4603ddb4 Ox.load: when loading modules, set locale 2013-05-09 19:02:28 +02:00
rolux
9c66eced09 in setLocale, allow for setting the locale to the current locale (in order to include additional module locale files) 2013-05-09 19:01:59 +02:00
rolux
54c8871559 in setLocale, only call callback once 2013-05-09 18:38:19 +02:00
rolux
e6522b8fef update setLocale (handle module localization) 2013-05-09 17:41:00 +02:00
rolux
a1f1138b22 LOCALES -> LOCALE_NAMES 2013-05-09 17:00:28 +02:00
j
4d8c716d0b add localization to Ox 2013-05-09 13:03:33 +00:00
rolux
b68b827d7b add Locale.js, update Format.js 2013-05-09 15:12:26 +02:00
rolux
2968d7b79a update test 2013-04-26 12:26:19 +02:00
rlx
f34d70fd4c Ox.formatString: support '{a.b.c}' access to nested object properties 2013-03-05 06:06:58 +00:00
rolux
730ae16a99 update Ox.getFile docs 2013-03-02 16:08:03 +05:30
rolux
9236b7fd83 update Ox.getFile docs 2013-03-02 16:01:47 +05:30
rolux
89408bd4be fix <a> regexp to allow for href="/" 2013-02-27 16:27:44 +05:30
rolux
5ca1c5b36c in Ox.localStorage, use native for in loop to test if the browser can iterate over localStorage 2013-02-18 12:44:40 +05:30
rolux
f44db6ff18 update tests 2013-02-18 12:43:59 +05:30
rolux
290d97cbee in serialize/unserialize, replace toNumber argument with isJSON argument 2013-02-18 11:38:31 +05:30
rolux
5227dbc166 in Ox.sanitizeHTML, when passing an array of replaceTags tuples, allow for the second element of that tuple to be a replace function (not just a string) 2013-02-16 12:39:16 +05:30
rolux
3cdaebadee Ox.sanitizeHTML: add replaceTags option 2013-02-15 18:01:28 +05:30
j
30253ddb9c dont fail if third party localStorage is not enaled, closes #1244 2013-02-12 17:58:07 +00:00
rolux
36bb42e7bd Ox.sort: handle thousand separators 2013-02-03 12:44:40 +05:30
j
23833d2a11 chnage local storage test to work in FF 16+, fixes #1116 2013-01-25 07:14:37 +00:00
rolux
d7f54bc7e4 add Ox..toggleClass() method 2013-01-08 11:51:12 +01:00
rolux
0d9f689605 avoid double 'if' in Ox.forEach; minor documentation cleanup 2013-01-03 15:56:55 +01:00
rolux
6d5b254a94 in Ox.formatOrdinal, add thousand separators 2013-01-01 15:05:35 +01:00
rolux
c27dc129ce Ox.api: handle missing 'options' argument 2012-12-18 15:04:22 +01:00
rolux
293c96a97d In Ox.api, allow for sums of text fields (= number of unique values, for example: number of artists in a list of works) 2012-12-18 11:35:51 +01:00
rolux
34cef100ad remove some brackets 2012-11-14 15:16:49 +01:00
rolux
666815f566 update inline test 2012-11-14 15:12:08 +01:00
rolux
48f2c4f9ee add Ox.formatCount 2012-11-14 15:10:04 +01:00
rolux
4ef16ef92d when computing sort values, only strip non-word characters from the beginning of the value if the result is not an empty string 2012-10-26 18:16:44 +02:00
rolux
23bd717a8a When caching sort values, make the type of the value part of the cache key (so that 9 and '9' don't collide) 2012-10-26 18:09:37 +02:00
rolux
2223fcfd2b In Ox.api, add support for values that are arrays 2012-10-26 17:27:15 +02:00
j
7230606a6d fix Ox.sort, was broken in changeset:oxjs,2363 2012-09-08 00:19:13 +02:00
rolux
db9c55ff5e in cached getSortValue function, use a cheaper args to key function 2012-09-04 00:46:55 +02:00
rolux
bed08786a1 fix dependencies 2012-09-04 00:45:43 +02:00
rolux
0d0926cbf5 In Ox.cache (which is now called onload in Array.js to cache getSortValue), remove dependency on Ox.extend (which would depend on Ox.forEach) 2012-09-03 22:14:08 +02:00
rolux
f5c320187e In Ox.api, add a map option {key: fn(value, object)}, value being object[key], so that the sort value can depend on other keys; Ox.sortBy is updated to use getSortValue (cached sort value of mapped value) instead of getSortValues (precomputed mapped sort value per value, which is no longer unique) 2012-09-03 22:11:25 +02:00
rolux
baf29d068b remove an onload dependency 2012-09-03 21:59:53 +02:00
rolux
863ddfeafa remove an onload dependency 2012-09-03 21:11:57 +02:00
rolux
d16f76f0da add constant Ox.EARTH_SURFACE 2012-09-01 05:51:35 +02:00
rolux
b5a2e80878 fix sort value for '[article] [number or quoted string]', add test 2012-08-29 17:40:27 +02:00
rolux
ff1e6d4833 make Ox.compact more compact and flatten Ox.flatten 2012-07-13 15:51:49 +02:00
j
223d9470a9 add useCapture argument to addEventListener, not optional in FF 3.6 2012-07-05 19:50:01 +02:00
rolux
a155ff5487 fix Ox.localStorage for Firefox 3.6 2012-07-05 19:48:20 +02:00
rolux
b8f88958da cleanup documentation 2012-07-05 19:47:57 +02:00
rolux
f4c34d858c remove Ox.polyfill.localStorage 2012-07-05 19:47:33 +02:00
j
4b71d7c03b merge 2012-07-05 19:45:41 +02:00
j
762d5ca963 fix load on IE and Firefox 3.6 2012-07-05 19:05:52 +02:00
rolux
0f44e64885 remove some comments 2012-07-05 11:36:17 +02:00
rolux
bda90f6b6b remove Ox.Break 2012-07-05 10:58:08 +02:00
rolux
c600c250b0 update documentation for request methods 2012-07-03 23:55:05 +02:00
rolux
ad25f92c38 update about, fix Ox.find docs 2012-07-03 00:54:37 +02:00
rolux
487ee4626d update Ox.formatUnit 2012-07-02 16:19:36 +02:00
rolux
bbd80ccf4f Ox.getAsync: fix docs, rename var 2012-06-27 14:55:49 +02:00
rolux
73c0fc8c31 remove print statement 2012-06-27 13:21:28 +02:00
rolux
f6a7d0a059 remove unneccessary closure 2012-06-26 03:14:35 +02:00
rolux
f5782c475b Ox.divideInt -> Ox.splitInt 2012-06-25 16:43:03 +02:00
rolux
1b62ccfc4b Ox.test: fix docs 2012-06-24 19:11:59 +02:00
rolux
d29bc5569b make Ox.rgb always return integers 2012-06-24 17:41:27 +02:00
rolux
9f1b86ab87 Ox.test: eval all scripts; add stringifyResult method; properly stringify actual async result; in async path, rename 'result' to 'actual' 2012-06-24 15:40:48 +02:00
rolux
966ceeb1f1 Ox.parseMarkdown: don't make replacements inside code spans/blocks; Ox.sanitizeHTML: add (failing) test; remove unneccessary escaping inside [] in regular expressions 2012-06-24 15:37:46 +02:00
rolux
8312105427 comment out example scripts 2012-06-24 15:34:19 +02:00
rolux
19afdd8bea fix Ox.clone(0, deep) 2012-06-24 15:32:35 +02:00
rolux
05828db75d Ox.doc: support inline properties prefixed with '.', add FIXMEs 2012-06-23 20:22:09 +02:00
rolux
4b0a07387f fix a bug in parseMarkdown, add tests 2012-06-23 13:30:33 +02:00
rolux
ec4c46cb6c Ox.sanitizeHTML: include 'em' and 'strong' in default tags (otherwise sanitizing markdown fails) 2012-06-23 12:48:17 +02:00
rolux
b272221020 Ox.doc: set 'section' to complete line, not just first word 2012-06-23 12:47:30 +02:00
rolux
1652cde0ec fix docs 2012-06-23 12:46:41 +02:00
rolux
f15d6cad0f change the semantics of Ox.load to call back once the DOM is ready - which wasn't the case when calling Ox.load(callback) in the built version 2012-06-22 15:02:38 +02:00
rolux
e54be15936 Ox.sanitizeHTML: add test 2012-06-22 10:29:09 +02:00
rolux
8ccabb349e Ox.sanitizeHTML: decode html entities before encoding html entities; Ox.parseMarkdown: encode '<' in code spans and code blocks 2012-06-22 10:24:25 +02:00
rolux
93a9805da7 minor cleanup 2012-06-21 13:47:52 +02:00
rolux
d8cd59e90f add Ox.hypot 2012-06-21 13:39:19 +02:00
rolux
d04c1d3059 remove a print statement 2012-06-21 08:55:05 +02:00
rolux
71218cd61f Ox.tokenize: handle '.1' 2012-06-21 08:08:45 +02:00
rolux
625325a6e6 fix test result 2012-06-20 22:11:05 +02:00
rolux
9e35ae0be2 minor cleanup 2012-06-20 18:49:06 +02:00
rolux
9093d5f3ed update Ox.load documentation 2012-06-20 18:40:55 +02:00
rolux
68b89d7628 update Ox.load documentation 2012-06-20 18:39:31 +02:00
rolux
e88f622449 minor cleanup 2012-06-20 17:16:58 +02:00
rolux
bbf72ab0c7 Ox.formatRoman: add test 2012-06-20 12:03:10 +02:00
rolux
c68af487c5 typo 2012-06-20 12:02:04 +02:00
rolux
35df921fcd Ox.formatRoman: add tests 2012-06-20 12:01:32 +02:00
rolux
14d57f70bb add Ox.formatRoman 2012-06-20 11:57:22 +02:00
rolux
c3d51860c3 update markdown parser and css 2012-06-20 09:23:39 +02:00
rolux
46f2fa516e fix a bug in sort/sortBy 2012-06-19 21:29:16 +02:00
rolux
1f4b0f7faa Ox.api: cache sort; Ox.sortBy: improve performance 2012-06-19 19:32:10 +02:00
rolux
178e2bc487 fix min/max longitude 2012-06-19 18:04:48 +02:00
rolux
7c2f8aa967 typo 2012-06-19 18:02:40 +02:00
rolux
f7b0fb6893 typo 2012-06-19 18:01:48 +02:00
rolux
a544de5c60 typo 2012-06-19 18:00:59 +02:00
rolux
98b7929fc3 typo 2012-06-19 17:59:31 +02:00
rolux
76a540e399 Ox.API: better workaround for area 2012-06-19 17:57:21 +02:00
rolux
996f41c06b move Ox.stripTags from String.js to HTML.js 2012-06-18 19:11:17 +02:00
rolux
1ab5c5eca1 move Ox.isEmpty from Collection.js to Type.js 2012-06-18 19:10:41 +02:00
rolux
9ef4bdd0c1 avoid loop 2012-06-18 09:14:45 +02:00
rolux
175c8b23d0 Collection.js: handle localStorage object 2012-06-17 16:41:39 +02:00
rolux
d793d7857d add test for Ox.typeOf(localStorage) 2012-06-17 16:40:42 +02:00
rolux
c9474ee04e Ox.load: allow for passing array of modules 2012-06-17 15:56:13 +02:00
rolux
8d8e087e3d Ox.loadFile -> Ox.getFile 2012-06-17 15:37:21 +02:00
rolux
77adfbf7b8 Requests.js: handle errors, various other improvements 2012-06-17 15:36:55 +02:00
rlx
9d475e6012 remove warning when returning false from Ox.loop and Ox.forEach 2012-06-16 20:46:14 +00:00
rlx
898cc702f5 highlight: several bugfixes and performance improvements; normalizeHTML: only use dom if needed 2012-06-16 20:45:05 +00:00
rlx
3fc8a47bf4 return original string when highlight is called without query; lazy format annotation date 2012-06-16 16:17:28 +00:00
j
53966f3f53 fix Ox.sanitzeHTML if urls are inside an open a tag 2012-06-16 13:16:30 +02:00
rolux
1e47435058 add atob and btoa polyfills 2012-06-15 10:39:22 +02:00
rolux
37ee99f884 Ox.localStorage: fix chaining, add tests 2012-06-15 09:43:55 +02:00
rolux
d2322388dc minor changes 2012-06-15 09:43:27 +02:00
rolux
43077ceb88 typo 2012-06-14 16:45:49 +02:00
rolux
cbe8f1db49 Ox.identify: update examples 2012-06-14 16:44:50 +02:00