Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Major refactoring #185

Merged
merged 8 commits into from
Feb 2, 2013
Merged

Major refactoring #185

merged 8 commits into from
Feb 2, 2013

Conversation

avoidwork
Copy link
Owner

  • Updating array.each() to not set an unneeded variable while iterating
  • Updating array.limit() to halt iteration at the end of the Array
  • Updating client.jsonp() & client.request() to return a Promise
  • Shortening call stack for some string.trim() executions
  • Refactoring data.batch() to be aware of data.leafs[]
  • Updated data.generate() to use the appropriate record key (instead of concatenating the parent.id)
  • Data stores to have new data.max & data.maxDepth properties
  • Updated the following methods to return a Promise: data.batch(), data.crawl(), data.del(), data.generate(), data.set(), data.setUri() & data.sync()
  • Removing future parameter from data.batch(), data.crawl(), data.del(), data.generate(), data.set(), data.setUri()& data.sync(); this is an API revision / regression from 3.3.x syntax
  • Updated data.generate() to accept a String retrieve or Array to batch records
  • Fixed promise.resolve() & promise.reject() to reconcile on the next tick
  • Updated promise unit tests
  • Implementing data.depth & data.maxDepth to control recursive API consumption

…ng, updating `array.limit()` to halt iteration at the end of the array
…for easy chaining of handlers (paradigm shift from observer oriented chaining)
…ta.generate()` to use the appropriate record key (instead of concatenating the parent.id)
…ted the following methods to return a promise: `data.batch()`, `data.crawl()`, `data.del()`, `data.generate()`, `data.set()` & `data.sync()`, updated `data.generate()` to accept a String retrieve or Array to batch records, fixed `promise.resolve()` & `promise.reject()` to resolve on the next tick, updated `promise` unit tests

Fixing a conditional statement
…a.del()`, `data.generate()`, `data.set()`, `data.setUri()`& `data.sync()` because they return Promises

Fixing data store method linking via `Promises`

Alignment

Alignment
@ghost ghost assigned avoidwork Feb 2, 2013
avoidwork added a commit that referenced this pull request Feb 2, 2013
@avoidwork avoidwork merged commit 0119893 into master Feb 2, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant