Commit graph

63 commits

Author SHA1 Message Date
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
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
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
rolux
bda90f6b6b remove Ox.Break 2012-07-05 10:58:08 +02:00
rolux
ad25f92c38 update about, fix Ox.find docs 2012-07-03 00:54:37 +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
8bc8c57373 use base 10 in parseInt, use Math.floor for numbers 2012-06-13 10:28:21 +02:00
rlx
fbbe1e256a remove whitespace 2012-06-13 07:57:27 +00:00
rolux
a5c6747b57 change the signature of Ox.pad to match Ox.truncate 2012-06-04 11:08:38 +02:00
rolux
ecd84770dd make Ox.forEach(object...) return a number; remove Ox.setPropertyOnce; move Ox.last to Array.js; update documentation and tests 2012-06-02 16:08:01 +02:00
rolux
686df92efa update documentation 2012-06-02 15:17:56 +02:00
rolux
d9b0cc5f01 update/fix documentation 2012-06-02 15:07:29 +02:00
rolux
9269b96469 use markdown 2012-05-30 13:34:57 +02:00
rolux
8210a0c5cd fix a bug in sort, rename vars, re-enable Ox.api documentation 2012-05-28 07:52:46 +02:00
j
5fa84fc9af remove trailing commas 2012-05-25 21:59:48 +00:00
rolux
fa1b2346ef minor change 2012-05-25 19:07:40 +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
544e117cb3 Ox.break -> Ox.Break 2012-05-24 19:20:29 +02:00
rolux
64c01e385d remove Ox.merge 2012-05-24 12:19:47 +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
9a7e86dceb + 1 fixme 2012-05-23 09:20:06 +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
rolux
04784630d3 use Ox.break 2012-05-22 09:11:26 +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
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
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
rolux
b28eb7ec51 minor changes in sortBy 2012-04-11 22:36:27 +02:00
rolux
da8066dc73 typo in documentation 2012-04-07 12:44:12 +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
b9ebb11d48 add geo option to Ox.api (send combined area with totals) 2012-04-02 17:41:28 +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