Commit graph

420 commits

Author SHA1 Message Date
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
rolux
ad3b50cb82 cleanup; rename vars; fix deflate 2012-05-25 10:37:48 +02:00
rolux
cda702d94d typo 2012-05-25 09:53:55 +02:00
rolux
e4f34b1c7d rename vars 2012-05-25 09:52:57 +02:00
rolux
565dc6ad35 rename vars; move Ox.find, Ox.getIndexById, Ox.getObjectById, Ox.makeArray and Ox.toArray to Array.js; make Ox.find accept a third argument ('leading') and return a single array; improve IE patch for Ox.toArray 2012-05-25 09:44:48 +02:00
rolux
631ad8222d rename vars 2012-05-25 09:40:27 +02:00
rolux
7f7a5aa44c in Ox.walk, pass array of keys to iterator; rename vars 2012-05-25 09:39:33 +02:00
rolux
42923bedf1 rename vars; add tests 2012-05-25 09:35:20 +02:00
rolux
26093367ec rename vars 2012-05-25 09:34:50 +02:00
rolux
61bb1c3598 typo; fix a test 2012-05-25 09:33:34 +02:00
rolux
8aa2e7f29c typo 2012-05-25 09:32:49 +02:00
rolux
7eb6ec56b8 typo 2012-05-25 09:32:32 +02:00
rolux
f48adff6c7 move Ox.getset and Ox.makeObject to Object.js 2012-05-25 09:32:11 +02:00
rolux
d21c95e9fd typo 2012-05-25 09:31:22 +02:00
rolux
801aee31b8 typo 2012-05-25 09:31:03 +02:00
rolux
d5a2588a1e use Ox.contains 2012-05-24 19:22:57 +02:00
rolux
544e117cb3 Ox.break -> Ox.Break 2012-05-24 19:20:29 +02:00
rlx
bdb399614f do not alias Ox.contains as Ox.in 2012-05-24 17:11:48 +00:00
rlx
d4bcc66fe8 add a semicolon 2012-05-24 17:10:51 +00:00
rlx
c4e66fbb3d rename Ox.break to Ox.Break and move it to Core.js, use storage['delete'] in order to support older IE versions 2012-05-24 17:10:29 +00:00
rlx
c8c50b9e89 rename Ox.void to Ox.noop 2012-05-24 16:20:22 +00:00
rlx
d5962a972d fix Ox.typeOf for Mobile Safari 2012-05-24 15:24:13 +00:00
rlx
e2330a0e2e fix Ox.typeOf for Mobile Safari 2012-05-24 15:16:21 +00:00
rolux
64c01e385d remove Ox.merge 2012-05-24 12:19:47 +02:00
rolux
f6b06d0975 throw error when returning false in Ox.forEach; remove Ox.sub 2012-05-24 12:19:23 +02:00
rolux
75baeb73f8 throw error when returning false in Ox.loop; remove Ox._loop 2012-05-24 12:18:01 +02:00
rolux
1608664bb6 rather use ''.slice than ''.substr 2012-05-24 11:47:33 +02:00
rolux
f990f3b857 use [].slice, not Ox.sub 2012-05-24 11:02:59 +02:00
rlx
915e98f829 fix a bug in sort 2012-05-24 07:55:18 +00:00
rolux
1c40fb007b use [].concat, not Ox.merge 2012-05-24 09:45:33 +02:00
rolux
c3c79e5f0a update non-blocking foreach/map 2012-05-24 08:54:44 +02:00
j
7138a8eaa0 add tests 2012-05-23 22:23:32 +02:00
rolux
aea2473399 update non-blocking forEach 2012-05-23 18:14:36 +02:00
rolux
77f4d8f3b9 typos 2012-05-23 17:48:17 +02:00
rolux
9137607045 update docs 2012-05-23 17:43:32 +02:00
rolux
65fd7d4dd0 add async module 2012-05-23 17:43:01 +02:00
j
f97352ee61 fix use of Ox.map, Ox.loop 2012-05-23 17:13:38 +02:00
rolux
9a7e86dceb + 1 fixme 2012-05-23 09:20:06 +02:00
rolux
1c4caa4965 minor cleanup 2012-05-23 09:04:49 +02:00
rolux
5a4de0de70 + 1 fixme 2012-05-23 09:01:57 +02:00
rolux
df67c37924 update docs 2012-05-23 09:01:36 +02:00
j
1b08732fa7 - add loadAsync and use in Ox.loadFile, Ox.getJSON
- add Ox.getJSONP
- fix Ox.parseHTML
- fix Ox.Doc
- add more documentation
2012-05-23 01:17:17 +02:00
j
601a29023a minor changes 2012-05-22 19:51:07 +02:00
j
57f774ae8d fix js parser 2012-05-22 19:50:26 +02:00
j
6fcca8f3a9 remove png functions, better versions in Ox.Image 2012-05-22 19:49:29 +02:00
rolux
3f35003ac9 fix Ox.encodeHTML 2012-05-22 17:41:01 +02:00
rolux
12cf77cef5 less obscure Ox.map 2012-05-22 16:29:37 +02:00
j
34bf08c445 document Ox.break 2012-05-22 10:35:35 +02:00
rolux
04784630d3 use Ox.break 2012-05-22 09:11:26 +02:00
rolux
3d4a79b6a2 in Ox.every, use Ox.identity; faster Ox.filter; in Ox.forEach, allow for Ox.break, and use standard arguments for iterator function, remove Ox.getIndex and Ox.getObject; add Ox.indexOf; in Ox.makeObject, use Ox.typeOf; make sure Ox.max and Ox.min don't blow the stack; add Ox.slice; in Ox.values, use Ox.typeOf 2012-05-21 22:17:33 +02:00
rolux
bfa9394850 in Ox.api, use Ox.indexOf, not Ox.getIndex; faster Ox.merge 2012-05-21 22:10:51 +02:00
rolux
047cf5813d use 'this', not 'window', as global object; allow for Ox.break in Ox.loop 2012-05-21 22:05:49 +02:00
rolux
75558d4b9d in Ox.extend, use Ox.slice; add includePrototype argument to Ox.methods 2012-05-21 22:04:22 +02:00
rolux
f83d317407 minor changes 2012-05-21 21:24:06 +02:00
rolux
bb6f6d6471 add Ox.hasOwn 2012-05-19 13:39:25 +04:00
rolux
eab834a643 fix a type check in Ox.sum 2012-05-19 13:38:49 +04:00
rolux
d3ff222a04 Ox.$: return undefined for non-existing attributes (like jQuery); fix a wrong 'this' reference 2012-05-19 13:16:04 +04:00
rolux
f793245e2e Ox.isNumber: update tests 2012-05-19 13:14:38 +04:00
rolux
8479037ab6 fix Ox.checkType 2012-05-19 12:48:01 +04:00
rolux
5692195509 swap the meaning of makeArray and toArray: makeArray, like makeObject, is a helper function for arguments processing (that wraps any non-array in an array), toArray, like in other libraries, is an alias for Array.prototype.slice.call 2012-05-19 12:40:59 +04:00
rolux
5cabb679f9 merge misc. minor changes 2012-05-19 12:30:43 +04:00
rolux
6acfd505e6 fix type check in Ox.$ 2012-05-19 12:15:28 +04:00
rolux
49fc8dc8ed base Ox.typeOf on Object.prototype.toString, add Ox.checkType, Ox.isInt and Ox.isPrimitive 2012-05-19 12:15:04 +04:00
rolux
d066501a14 add Ox.STACK_SIZE 2012-05-19 12:10:41 +04:00
rolux
03947b0d7f add Ox.identity 2012-05-19 12:09:48 +04:00
rolux
e8f7f37a8a update Collection.js: for functions, make Ox.len return undefined and Ox.isEmpty return false 2012-05-19 12:06:49 +04:00
rolux
373549a25a remove Ox.isFalsy 2012-05-19 10:36:34 +04:00
rolux
d4954db30d add Ox.escapeRegExp 2012-05-19 10:36:02 +04:00
j
509745407b add documentation stubs 2012-05-21 12:38:18 +02:00
rlx
959a014657 fix Ox.sort so that it handles multiple numbers 2012-04-24 10:47:18 +00:00
rlx
4a210718ea in Ox.sort(), handle non-leading numbers and leading articles (fixes #723, fixes #779) 2012-04-24 10:16:58 +00:00
j
e765153f9c dont loop over files twice 2012-04-19 14:19:57 +02:00
rlx
17b17707fc minor fix in documentation 2012-04-19 11:25:12 +00:00
rlx
a943d00e20 allow for passing multiple files to Ox.getJSON 2012-04-19 11:23:24 +00:00
rlx
cf943e6466 add Ox.loadFiles 2012-04-19 11:13:43 +00:00
rolux
0148701372 update Ox.$ tests 2012-04-15 21:12:48 +02:00
rolux
ad56695694 clean up Ox.$ 2012-04-15 14:14:18 +02:00
rolux
ecba7968c1 add val() method to Ox.$ 2012-04-14 11:45:19 +02:00
rolux
b4dc9e15ba add async version of Ox.loop 2012-04-13 23:19:52 +02:00
rolux
49a16328f5 add new methods to Ox.$ (width, height, show, hide) 2012-04-12 21:21:03 +02:00
rolux
1d9bf5aacd remove some unused geo objects 2012-04-11 22:37:20 +02:00
rolux
b28eb7ec51 minor changes in sortBy 2012-04-11 22:36:27 +02:00
rolux
ebc6efffb4 minor fixes and documentation updates 2012-04-09 10:42:00 +02:00
rolux
1651b3f565 make Ox.doc accept multiple files 2012-04-09 10:39:02 +02:00
rolux
abfea74565 misc. minor changes and documentation updates 2012-04-08 20:22:27 +02:00
rolux
7b13e834a7 add Ox.void() 2012-04-08 14:19:53 +02:00
rolux
7daf1a23a0 erroneous semicolon 2012-04-08 14:19:34 +02:00
rolux
370997c324 Ox.contains = Ox.in 2012-04-08 14:18:43 +02:00
rolux
e53fe8b09a remove print statement 2012-04-07 16:47:02 +02:00
rolux
bd4b5e6880 add the synchronous version of Ox.doc() promised in its documentation 2012-04-07 16:40:07 +02:00
rolux
7474ac9783 make Ox.doc report arrays as '[...]' instead of 'array[...]', and arrays with unspecified types as '[values]' instead of 'array[any]' 2012-04-07 12:47:40 +02:00
rolux
ee5f89ca86 minor doc update 2012-04-07 12:44:53 +02:00
rolux
da8066dc73 typo in documentation 2012-04-07 12:44:12 +02:00
rolux
9ad4ec6041 add bindOnce to Ox.$ 2012-04-07 01:45:51 +02:00
rolux
24eb4bdc64 improve implementation and documentation of Ox.divideInt 2012-04-06 02:43:41 +02:00
rolux
e951578b37 make Ox.$ more useful 2012-04-05 17:30:00 +02:00
rolux
c54574a7b7 change version number to 0.1 2012-04-05 17:29:33 +02:00
rolux
7b7bedb65a use Ox.api in Ox.List and Ox.Map 2012-04-04 09:06:55 +02:00
rolux
1278e39759 add cache option to Ox.api 2012-04-03 15:09:39 +02:00
rolux
4613c96a01 make Ox.cache work for aynchronous functions 2012-04-03 15:09:05 +02:00
rolux
1f7796b0f8 make Ox.reverse() work for arrays 2012-04-02 23:11:56 +02:00
rolux
b9ebb11d48 add geo option to Ox.api (send combined area with totals) 2012-04-02 17:41:28 +02:00
rolux
9a61fdbbab add Ox.containsArea (true if an area contains another one), Ox.intersectAreas (the area/s contained in all areas) and Ox.joinAreas (the smallest area contaning all areas) 2012-04-02 17:40:09 +02:00
rolux
803985a160 in Ox.api, only sort if more than two items 2012-04-01 23:02:19 +02:00
rolux
cd6bca7d6b remove a print statement 2012-04-01 00:25:46 +02:00
rolux
b03393bc0c modify Ox.sort so that empty, null or undefined volumes come last, regardless of sort order (fixes # 727) 2012-03-31 23:00:05 +02:00
rolux
4a09d329c8 in Ox.api, add default sort, and allow for values to be arrays 2012-03-31 22:09:55 +02:00
rolux
18ba0d5347 add Ox.formatDegrees 2012-03-31 18:28:48 +02:00
rlx
25c25c76c7 minor changes, mostly documentation 2012-03-30 14:11:29 +00:00
rlx
044da383db minor changes, mostly documentation 2012-03-30 01:41:47 +00:00
rlx
9265efe61a minor changes in Collection.js, mostly documentation 2012-03-29 20:01:05 +00:00
rlx
4b59c9a2a9 add callback to Ox.api 2012-03-29 19:32:05 +00:00
rlx
f3ff4b791d add missing functionality to Ox.api (positions requests and enums) 2012-03-29 18:40:03 +00:00
rlx
7b4002b340 add Ox.api, to apify and array 2012-03-29 14:43:05 +00:00
rlx
b807fc81af fix a bug that would throw an error when running tests for Ox.cache 2012-03-29 12:34:13 +00:00
rlx
def7c88639 Hash.js, minor formatting changes 2012-03-29 10:26:02 +00:00
rlx
44ec0d1ecb more concise version of Ox.range 2012-03-29 10:19:42 +00:00
rlx
ab2e5ecda0 minor fixes in documentation 2012-03-29 10:11:45 +00:00
j
c1ec0814dd add Ox.oshash 2012-03-28 11:04:03 +02:00
rlx
97810bb472 fix a regression in formatValue, concerning the number of decimals 2012-03-27 09:36:11 +00:00
rlx
17aca54e7a temporary fix for video skipping bug (#716); add third parameter (index) to forEach callback; add Geo colors 2012-03-25 21:23:03 +00:00
rlx
7818d4deb6 improve Ox.formatValue 2012-03-24 10:39:21 +00:00
rlx
aed581b33e update parseUserAgent 2012-03-21 08:36:26 +00:00
rlx
61f9496f34 update Ox.parseUserAgent 2012-03-21 06:54:02 +00:00
rlx
bc3fedb125 fix alphabetical order of annotations with tags, fixes #681 2012-03-20 09:34:50 +00:00
rolux
9a559809b0 make Ox.getTime accept utc parameter 2012-02-25 13:04:18 +05:30
rolux
439a0a58af fix formatting dates as UTC seconds 2012-02-24 22:13:23 +05:30
rlx
94cfbdb45c fix issues with automatically opening annotation folders; add annotations option to video player to make find work for all layers 2012-02-19 10:49:52 +00:00
j
b12099a9d7 support h1-h6, fixes #516 2012-02-18 15:40:41 +00:00
rlx
e8f370ab7c make video editor handle internal links (fixes #494) 2012-02-17 16:13:08 +00:00
rlx
4f5a2e8072 fix Ox.isArguments 2012-02-17 10:30:47 +00:00
j
f919d64044 fix Ox.App in Firefox 3.6 to show loading screen, fixes #393 2012-02-17 10:24:42 +00:00
j
a976b674f4 - allow links to local images
- allow wiki links to local urls
- disable automatic url / email linking since its broken right now
2012-02-11 17:49:25 +05:30
j
21854f653e do not shorten urls, just turn them into links 2012-02-10 15:22:09 +05:30
rlx
3c94f44a99 fix bugs in video editor; begin to implement new list map mode that allows for defining/clearing places 2012-02-04 08:58:46 +00:00
rlx
1ae47b761b support highlighting in icon list text 2012-02-01 11:57:21 +00:00
rlx
4dba56ba87 improve Ox.highlightHTML and annotations CSS 2012-02-01 08:26:06 +00:00
j
9568acd592 highlight html strings without breaking tags 2012-01-31 12:00:34 +00:00
j
7475ef0124 fix Ox.Edidable textarea height, dont add title to links in parseHTML 2012-01-19 22:07:39 +05:30
rolux
1445824ffd add tests to Ox.formatDateRange 2012-01-17 11:29:32 +05:30
rlx
408ebf54cb update video editor (editables) 2012-01-16 16:52:34 +05:30
rlx
b2e8b2ac82 update video editor 2012-01-12 16:09:05 +05:30
rlx
11d9b63dba add Ox.sortBy 2012-01-11 16:17:06 +05:30
rolux
1db649bd61 add Function.js, some updates in OxJS 2012-01-07 12:50:02 +05:30
rolux
80f9a1a33d merging changes (timeline, annotations, urls) 2012-01-06 17:32:20 +05:30
rolux
f76ee0cf36 minor changes in OxJS 2012-01-06 17:27:54 +05:30
j
093edd57d0 - remove editItem from Ox.List
- use ArrayEditable for text too
2012-01-04 22:57:32 +05:30
rolux
66934d22a9 theme.js -> theme.json; make timeline themed 2012-01-04 15:20:07 +05:30
rolux
8097cc7812 Ox.getPositionById() -> Ox.getIndexById() 2012-01-04 13:41:05 +05:30
rolux
4ca01b2bfa merge updates in VideoEditor, AnnotationsPanel, Editable, Input, etc 2012-01-04 13:15:48 +05:30
rolux
2ef642fdeb misc updates to ox.js 2012-01-04 13:12:48 +05:30
rlx
85652471c6 update VideoEditor/AnnotationPanel/Editable/...; update OxJS array functions 2012-01-04 01:11:50 +05:30
rolux
b77852296b misc fixes 2012-01-02 19:35:14 +05:30
rolux
7ca9a4a9e7 update progress bar 2012-01-02 13:55:34 +05:30
rolux
34753cb2ed misc updates; add geo demo 2011-12-31 18:27:02 +05:30
rolux
09a3537dc1 fix some localStorage bugs 2011-12-31 02:11:54 +05:30
rolux
7f249ff12b fix some localStorage bugs 2011-12-30 21:21:33 +05:30
rolux
64592e7278 fix some localStorage bugs 2011-12-30 21:07:41 +05:30
rolux
45243cb5ff add Ox.localStorage 2011-12-30 20:36:55 +05:30
rolux
73f1105692 updating form elements 2011-12-30 15:03:01 +05:30
rolux
c1c4441b10 update uses of focusInput() 2011-12-18 15:14:11 +05:30
rlx
4701245038 add mail svg; update form elements; change 'focusInput()' signature 2011-12-18 09:29:35 +00:00
rolux
d2d92c1ae9 more compact versions of decodeBase128 and decodeBase256 2011-12-17 04:42:18 +05:30
rolux
6374f6de6d change base 26 to bijective base 26 2011-12-17 04:33:43 +05:30
rolux
137944a1a7 minor changes 2011-11-30 15:56:01 +01:00
rolux
5209cf70d7 don't mutate values passed to Ox.rgb and Ox.hsl 2011-11-30 15:33:49 +01:00
rolux
e0d4dd3bec update geo module 2011-11-23 15:53:17 +01:00
rlx
d2a2ddb66e updates to url and filter 2011-11-10 22:47:38 +00:00
rlx
07c79ed7ac updates to url controller, filter and form elements 2011-11-10 19:52:26 +00:00
rlx
7470c9bb52 fix initial definition of Ox 2011-11-05 17:37:56 +00:00
rlx
1deb616942 catch some global vars 2011-11-05 17:27:11 +00:00
rolux
56370aa0a7 'use strict'; 2011-11-05 17:46:53 +01:00
rlx
241fa3e227 enable filter on change 2011-11-04 18:11:45 +00:00
rlx
d6cbc594bc update Ox.Log 2011-11-04 16:34:24 +00:00
rlx
9422780d65 update Ox.Log 2011-11-04 16:13:56 +00:00
rlx
8ef45bb1cb update Ox.Log 2011-11-04 16:04:46 +00:00
j
dce2843303 use Ox.Log 2011-11-04 16:54:28 +01:00
rlx
92d25b6776 update Ox.Log 2011-11-04 15:52:47 +00:00
j
2809a5d06d minor cleanup 2011-11-03 16:20:14 +01:00
rlx
4bb3196c03 fix form validation bug 2011-11-02 17:27:20 +00:00
rlx
be4d7c9124 == '' --> === '' 2011-11-02 16:00:54 +00:00
j
e6f075f88e change Ox.formatDate so that Ox.formatDate('', "%a, %b %e, %Y")
returns '' and not "undefined, undefined Na, NaN"
2011-11-02 16:21:09 +01:00
rlx
90bc4fb59e fix a layer bug 2011-11-01 14:45:47 +00:00
j
496da6aa77 no globals 2011-10-31 15:46:07 +01:00
j
bf228cf711 no globals 2011-10-31 15:14:54 +01:00
rlx
7415b72037 fix a bug related to clearing the requests cache 2011-10-29 12:32:55 +00:00
rlx
62f8a907ea updates for html parsing, request handling, and editable elements 2011-10-27 18:50:23 +00:00
rlx
a4cb6ee9ae fix a bug related to disabling checkboxes 2011-10-27 11:20:00 +00:00
rlx
1eb93125e6 some improvements to Ox.Editable 2011-10-27 08:47:31 +00:00
rlx
188656bd99 add themed colored elements 2011-10-26 14:52:03 +00:00
rlx
19d5f811d6 strip tags in Ox.Editable 2011-10-24 21:31:53 +00:00
j
3bb224a022 add some ;, remove print statement 2011-10-24 15:13:00 +02:00
rlx
925aa8d627 fix a bug that would keep loadFile from caching files 2011-10-23 16:00:59 +00:00
rlx
116d0bfdbf add Ox.Log, determine Ox.PATH by looking at the _last_ Ox.js script 2011-10-23 14:26:37 +00:00
rlx
cfc5baef61 change autovalidate function for input elements so that it returns, along with the new value, a valid flag that indicates if the value is already valid 2011-10-22 14:50:31 +00:00
rlx
6cf769b740 make Ox.formatUnit return 3 decimals 2011-10-19 13:23:09 +00:00
rlx
50e6321e00 fix a bug with emptying the find field of a map and pressing return 2011-10-13 11:34:10 +00:00
rlx
5948d2c2ce fix a bug with doubleclicking on a calendar to zoom in 2011-10-10 20:48:35 +00:00
rlx
ccece375c0 fix a corner case in Ox.formatDateRangeDuration() 2011-10-10 17:00:01 +00:00
rlx
d2972cd526 more functionality for ListCalendar 2011-10-10 12:38:54 +00:00
rolux
a39f76863f rewrite Ox.formatDuration() 2011-10-10 09:32:26 +02:00
rlx
2698bec700 fix margins of static icon lists 2011-10-08 17:19:18 +00:00
rlx
745aac2609 fix issues with leading and trailing whitespace and linebreaks in Ox.doc 2011-10-06 01:56:04 +00:00
rolux
d0fe279a0f new build system: build in /build, dev version in /dev; split up Ox.js; fix tests 2011-10-07 03:04:47 +02:00