Scott Kyle
5332131c14
Add sorted() method to List
2016-02-18 13:41:11 -08:00
Scott Kyle
05d84b23a2
Change sortedBy API as discussed
...
If provided an array, then each member can optionally be an array of [propName, reverse]
2016-02-18 12:47:18 -08:00
Scott Kyle
249bcd8f3f
Change sortByProperty to return new Results
...
The method name changed to sortedBy to reflect that it returns a new Results object and to be more succinct. Also, the second optional argument instead reflects descending (or rather, reverse) since it's an anti-pattern to have an optional argument default to true in JS, and this also follows precedences set by other JS libraries and by Python's sorted function.
2016-02-18 11:58:39 -08:00
Ari Lazier
6374a04ed4
chrome support for filtered
2016-02-17 20:27:10 -08:00
Scott Kyle
632f9d737e
Add methods to create snapshot of List and Results
...
The Results class was updated to match the style of List and include a flag (m_live) that determines if it should sync updates. If an object in the static Results is deleted, then it will return null.
2015-12-30 16:53:26 -08:00
Scott Kyle
46bee3c867
Add beta licenses to Chrome JS modules
2015-10-28 10:37:17 -07:00
Scott Kyle
2e592bc101
Sprinkle some const inside ES6 JS code
...
React Native 0.13.0 fixes the bug we experienced by using const.
2015-10-21 13:57:34 -07:00
Scott Kyle
b07aa72a55
Move all constants into a single JS file
2015-10-19 16:19:43 -07:00
Scott Kyle
1b7653206a
Generalize getting/setting properties through RPC
2015-10-19 15:46:00 -07:00
Scott Kyle
4c0cc578d5
Generalize calling methods through the RPC
2015-10-19 12:46:31 -07:00
Scott Kyle
5f52d07154
Add support for Results methods in Chrome
...
Which only consists of sortByProperty
2015-10-19 12:18:09 -07:00
Scott Kyle
a997ec5be9
Some cleanup of JS
2015-10-08 15:32:14 -07:00
Scott Kyle
310e3d7a03
Don't store transient arrays returned by RPC
2015-10-08 15:31:29 -07:00
Scott Kyle
31fc14d602
Support (de)serialization of objects in RPC
...
Everything is a dictionary with either a `value` key or an `id` key. If it's a value, then it will recursively be (de)serialized.
2015-10-08 01:53:01 -07:00
Scott Kyle
a9cac20f79
Rework lists to each have their own getters
...
This was necessary for them to each have their own enumerable properties. The React Native ListViewDataSource uses Object.keys() to the indexes.
2015-10-07 21:20:14 -07:00
Scott Kyle
41ba3b62b8
JS implementation for Results from RPC
2015-10-07 17:08:31 -07:00