Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Commits on Sep 28, 2012
  1. Merge pull request #7 from garbelini/master

    authored
    Subset.recalculate was stopping after the first change was applied.
Commits on Jul 11, 2012
  1. @garbelini
Commits on Jun 25, 2012
Commits on May 13, 2012
  1. use backbone 0.5.3 by default

    authored
  2. bumped version to 0.1

    authored
  3. some document changes

    authored
  4. Merge remote-tracking branch 'slindberg/master'

    authored
      - Adds `parent` option
      - Adds `recalculate` method
      - Removes AMD require on underscore lib
    
    Conflicts:
    	backbone.subset.js
  5. bumped version

    authored
  6. missing semicolon

    authored
Commits on May 12, 2012
  1. @saimonmoore
  2. @saimonmoore
Commits on May 9, 2012
  1. Added silent flag to recalculate().

    Steven Lindberg authored
  2. Merge remote-tracking branch 'masylum/master'

    Steven Lindberg authored
    Also updated dependency versions.
    
    Conflicts:
    	backbone.subset.js
    	test/test.js
Commits on Mar 30, 2012
  1. Huge refactor on proxy reset events. Only bubble to collections that …

    authored
    …will receive any add or remove
Commits on Mar 14, 2012
  1. Added 'recalculate' function

    Steven Lindberg authored
      recalculate() re-applies the sieve function to each model
      in the subset and updates as necessary. This is useful in
      situations where the sieve changes or depends on variables
      that have changed.
  2. Updated add/remove references to support backbone 0.9

    Steven Lindberg authored
  3. Removed AMD require of underscore lib

    Steven Lindberg authored
      Underscore is no longer AMD compatible and thus any implementations
      that use require() must deal with dependencies manually. This does
      not belong in master at the very least.
  4. Merged branch parent_per_instance

    Steven Lindberg authored
        Made getter for parent collection more Backbone-esque.
    
        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.
Commits on Feb 16, 2012
  1. malformed package.json

    authored
  2. added saimon as a contributor

    authored
  3. added saimon as a contributor

    authored
Commits on Feb 15, 2012
  1. @saimonmoore

    Bump version 0.0.3

    saimonmoore authored
    Added contributors
  2. @saimonmoore

    Add 'no_reset' option to NOT do a reset on construction but rather in…

    saimonmoore authored
    …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.
Commits on Feb 13, 2012
  1. Merge pull request #3 from masylum/dont_touch_parent

    authored
    When resetting parent (during a subset reset), don't remove the subset's models from the parent.
Commits on Feb 10, 2012
  1. @saimonmoore

    When resetting parent (during a subset reset), don't remove the subse…

    saimonmoore authored
    …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

    authored
  2. propagate reset correctly

    authored
Commits on Feb 2, 2012
  1. @saimonmoore

    Clean out lint

    saimonmoore authored
Something went wrong with that request. Please try again.