Skip to content
Commits on Feb 20, 2014
  1. @dcporter
  2. @dcporter
  3. @dcporter
  4. @dcporter
  5. @dcporter
  6. @dcporter

    Improves nested store handling of certain circumstances.

    dcporter committed
    SC.NestedStore#lockOnRead, which defaults to YES, is much too aggressive, locking even on attempts to read non-loaded records. This causes problems if, for example, a nested-store record's not-yet-loaded toOne relationship is read (e.g. by being bound to a view), locking it and triggering a load in the parent store. When the load returns, the locked record triggers a full nested-store reset (failing meanwhile to notify the nested-store record instance that it has loaded), or errors out if anything, anywhere in the nested store has changed.
    
    This commit avoids locking nested-store records when read in EMPTY or BUSY_LOADING states. It also modifies the behavior of SC.Store#_notifyRecordPropertyChange, which is where chained store errors are thrown, to switch solely based on the chained record's editable state, and to avoid costly and blunt full-store resets in any case. This allows the parent store to correctly update nested stores when untouched and unlocked records are updated.
Commits on Feb 18, 2014
  1. @mauritslamers @dcporter

    remove contained runloop in #createNestedRecord as it is no longer ne…

    mauritslamers committed with dcporter
    …eded and creates problems with caching in a child array
  2. @mauritslamers @dcporter

    added #parentRecord computed property for backwards compatibility (qu…

    mauritslamers committed with dcporter
    …ery), and removing commented out code
  3. @mauritslamers @dcporter
  4. @mauritslamers @dcporter

    #writeAttribute was still 1.4.5, updating to master, fixes test fail …

    mauritslamers committed with dcporter
    …for updating primaryKey value
  5. @mauritslamers @dcporter
  6. @mauritslamers @dcporter
  7. @mauritslamers @dcporter

    add notifyChildren to child array, adjust recordPropertyDidChange to …

    mauritslamers committed with dcporter
    …properly reset everything when called without key
  8. @mauritslamers @dcporter
  9. @mauritslamers @dcporter
  10. @mauritslamers @dcporter

    remove store related tests. Adding warning about normalize, which doe…

    mauritslamers committed with dcporter
    …sn't seem to behave as it should
  11. @mauritslamers @dcporter
  12. @mauritslamers @dcporter
  13. @mauritslamers @dcporter

    remove store related tests

    mauritslamers committed with dcporter
  14. @mauritslamers @dcporter

    handling setting null

    mauritslamers committed with dcporter
  15. @mauritslamers @dcporter
  16. @mauritslamers @dcporter
  17. @mauritslamers @dcporter
Commits on Feb 16, 2014
  1. @dcporter

    Fixes SC.routes bug where browser history events would trigger histor…

    dcporter committed
    …y updates, doubling up the history state. Includes really terrible unit test. Fixes #719.
Commits on Feb 15, 2014
  1. @dcporter
  2. @dcporter

    Swaps out @jlaxson's SC.SegmentedView#shouldAutoResize for @publickea…

    dcporter committed
    …ting's suggestion that the behavior be mediated by setting shouldHandleOverflow to NO. (There is currently no way to prevent resizing in a static-width segmented view with shouldHandleOverflow: NO; if that's a need, it shouldn't be hard to implement.)
  3. @dcporter
  4. @dcporter

    Implements SC.SegmentedView#shouldAutoResize, courtesy of @jlaxson. I…

    dcporter committed
    …ncludes unit tests. Resolves #974.
  5. @dcporter

    Don't forget to call arrayContentWillChange as well when enumerable c…

    Greg Fairbanks committed with dcporter
    …hanges.
Commits on Feb 14, 2014
  1. @dcporter
  2. @dcporter

    Improves SC.Binding documentation. Marks a number of advanced and rar…

    dcporter committed
    …ely-used methods private, in an effort to clean up the (rather intimidating) doc page.
  3. @mirion @dcporter
  4. @dcporter

    Adds SC.Request.manager functions isPending and isInFlight.

    Greg Fairbanks committed with dcporter
    Allows checking if a response is in the pending or inflight queues.
  5. @nicolasbadia @dcporter
  6. @nicolasbadia @dcporter
Something went wrong with that request. Please try again.