Permalink
Commits on Feb 24, 2012
  1. Allow setting parent for each instance of the subset collection.

    e.g.  new Collections.UrgentTasks([], {parent: tasks});
    
    This will override the #parent method defined on the class (if any)
    or fallback to it if no parent option is supplied to the constructor.
    saimonmoore committed Feb 24, 2012
Commits on Feb 15, 2012
  1. Bump version 0.0.3

    Added contributors
    saimonmoore committed Feb 15, 2012
  2. Add 'no_reset' option to NOT do a reset on construction but rather in…

    …itialize with existing parent models.
    
    i.e. it will ignore any models passed as args to the constructor and
    instead do an internal silent reset.
    saimonmoore committed Feb 15, 2012
Commits on Feb 13, 2012
  1. Merge pull request #3 from masylum/dont_touch_parent

    When resetting parent (during a subset reset), don't remove the subset's models from the parent.
    committed Feb 13, 2012
Commits on Feb 10, 2012
  1. When resetting parent (during a subset reset), don't remove the subse…

    …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.
    saimonmoore committed Feb 10, 2012
Commits on Feb 6, 2012
  1. lints, spaces and refactors

    committed Feb 6, 2012
  2. propagate reset correctly

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

    saimonmoore committed Feb 2, 2012
  2. Merge branch 'before_initialize'

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

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

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

    …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'].
    latentflip committed Jan 25, 2012
Commits on Dec 1, 2011
Commits on Nov 30, 2011
  1. When resetting the subset, repopulate with filtered models from the p…

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

    committed Nov 25, 2011
  2. docs

    committed Nov 25, 2011
  3. ignore node_modules

    committed Nov 25, 2011
  4. first commit

    committed Nov 25, 2011