Permalink
Commits on Sep 28, 2012
  1. Merge pull request #7 from garbelini/master

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

    committed May 13, 2012
  2. bumped version to 0.1

    committed May 13, 2012
  3. some document changes

    committed May 13, 2012
  4. Merge remote-tracking branch 'slindberg/master'

      - Adds `parent` option
      - Adds `recalculate` method
      - Removes AMD require on underscore lib
    
    Conflicts:
    	backbone.subset.js
    committed May 13, 2012
  5. bumped version

    committed May 13, 2012
  6. missing semicolon

    committed May 13, 2012
Commits on May 12, 2012
Commits on May 9, 2012
  1. Added silent flag to recalculate().

    Steven Lindberg committed May 9, 2012
  2. Merge remote-tracking branch 'masylum/master'

    Also updated dependency versions.
    
    Conflicts:
    	backbone.subset.js
    	test/test.js
    Steven Lindberg committed May 9, 2012
  3. Removed getValue() in favor of _.result() (now requires underscore 1.…

    …3.3)
    Steven Lindberg committed May 9, 2012
Commits on Mar 30, 2012
  1. Huge refactor on proxy reset events. Only bubble to collections that …

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

      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.
    Steven Lindberg committed Mar 14, 2012
  2. Updated add/remove references to support backbone 0.9

    Steven Lindberg committed Mar 14, 2012
  3. Removed AMD require of underscore lib

      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.
    Steven Lindberg committed Mar 14, 2012
  4. Merged branch parent_per_instance

        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.
    Steven Lindberg committed Mar 14, 2012
Commits on Feb 16, 2012
  1. malformed package.json

    committed Feb 16, 2012
  2. added saimon as a contributor

    committed Feb 16, 2012
  3. added saimon as a contributor

    committed Feb 16, 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