Permalink
Switch branches/tags
Nothing to show
Commits on Feb 10, 2012
  1. When resetting parent (during a subset reset), don't remove the subse…

    Saimon Moore
    Saimon Moore committed Feb 10, 2012
    …t's models from the parent.
    
    The idea being that though these models may not belong to this
    particular subset any longer, they may still belong to another subset.
    The parent should always contain the superset of models.
    
    So when resetting the parent, we look for any models from the new set of
    models that are missing from the parent and include them.
    
    Additionally, when adding a model to a subset's own collection we try
    and look it up on the parent (so both collections reflect the same
    instance) and failing that we create a new model instance (if only
    attributes were added).
    
    Updated tests to reflect the multiple subset use case.
    
    Note: To avoid the parent's reset event from re-resetting the subset's
    collection, we mark the event with a 'subset_reset' option. We only act
    on proxied 'reset' events that don't have this marker. This has the
    additional benefit of not propagating the parent's (subset initiated) reset event to
    sibling subsets.
Commits on Feb 6, 2012
  1. lints, spaces and refactors

    masylum committed Feb 6, 2012
  2. propagate reset correctly

    masylum committed Feb 6, 2012
Commits on Feb 2, 2012
  1. Clean out lint

    Saimon Moore
    Saimon Moore committed Feb 2, 2012
  2. Merge branch 'before_initialize'

    Saimon Moore
    Saimon Moore committed Feb 2, 2012
    Conflicts:
    	test/test.js
  3. Fix backbone to 0.5.3

    Saimon Moore
    Saimon Moore committed Feb 2, 2012
Commits on Jan 26, 2012
  1. Merge pull request #1 from latentflip/liveupdating-subsets

    saimonmoore committed Jan 26, 2012
    Liveupdating subsets
Commits on Jan 25, 2012
  1. Add a liveupdate_keys option to keep the subset updated, when model a…

    latentflip committed Jan 25, 2012
    …ttributes change that would make them now fail/pass the sieve.
    
    By default subset's will be liveupdated (liveupdate_keys = 'all').
    
    To limit the model keys on which the subset will be liveupdated, set liveupdate_keys to an array of model attributes. liveupdate_keys = ['archived', 'dated_on'].
Commits on Dec 1, 2011
  1. Ensure we respect existing comparator on subset

    Saimon Moore
    Saimon Moore committed Dec 1, 2011
Commits on Nov 30, 2011
  1. When resetting the subset, repopulate with filtered models from the p…

    Saimon Moore
    Saimon Moore committed Nov 30, 2011
    …arent.
    
    All models in the subset should be the same instance as in the parent
    collection. Corrected test to reflect this.
Commits on Nov 25, 2011
  1. 0.0.2

    masylum committed Nov 25, 2011
  2. docs

    masylum committed Nov 25, 2011
  3. ignore node_modules

    masylum committed Nov 25, 2011
  4. first commit

    masylum committed Nov 25, 2011