Permalink
Commits on Dec 22, 2011
Commits on Dec 21, 2011
  1. Ensure SetSorts have the same accessors for indexing and sorting that…

    … normal Sets do.
    
     - This clarifies that someSet.sortedBy('foo').sortedBy('bar') ~= someSet.sortedBy('bar'). Composite set sorts may come in the future, but they should be implemented like sortedBy('foo', 'bar') instead. This clashes with the sort direction argument so it may take some thought.
    airhorns committed Dec 21, 2011
  2. Make SetSort propagate itemsWereAdded and itemsWereRemoved events fro…

    …m the sets they proxy.
    airhorns committed Dec 21, 2011
  3. Build

    nickjs committed Dec 21, 2011
  4. Make RenderContext return the proxied value of a ContextProxy from fi…

    …ndKey, and give it a #get for easy access of the value at a key.
    airhorns committed Dec 21, 2011
Commits on Dec 20, 2011
  1. Revert "Return a Set from Model.load and fire events on those sets wh…

    …en they load."
    
    Thie reverts commit af7e9c1.
    nickjs committed Dec 20, 2011
  2. Test that multiple belongsTo associations save correctly.

    Kamil Tusznio committed Dec 20, 2011
  3. Make requests run through RailsStorage serialize form data without nu…

    …mbered indices for array values
    
     - Rails needs collection[rules][][name] instead of collection[rules][0][name], or POST'd JSON.
    airhorns committed Dec 20, 2011
Commits on Dec 19, 2011
  1. Build

    airhorns committed Dec 19, 2011
Commits on Dec 17, 2011
  1. Merge pull request #278 from tdegrunt/custom-headers

    Adding in headers, so that storage adapters can easily set custom headers
    airhorns committed Dec 17, 2011
Commits on Dec 15, 2011
Commits on Dec 14, 2011
  1. Remove some extraneous tests.

    airhorns committed Dec 14, 2011
  2. Make AssociationProxies quack like it instead of testing for instance…

    …of, reorder association code to put superclasses near subclasses.
    airhorns committed Dec 14, 2011
  3. Add SetSort and SetIntersection.

     - Each takes a left and a right Set in the constructor and guarantee an up to date representation of the operation on the two sets.
     - Each is Observable
     - Each subclasses Set and thus is Enumerable and has all the other Set goodness
     - Each plays nice with one another and the other Set operations like indices and sorts.
    airhorns committed Dec 14, 2011
  4. Make HasManyAssociation deserialize nested associations from JSON int…

    …o AssociationSets instead of just normal Sets.
    
     - This means that you can expect to always be able to do `product.get('images').load` safely, regardless of where the initial images came from.
    airhorns committed Dec 14, 2011
  5. Refactor AssociationCurator to be merge-able, and thus usable by _Bat…

    …man.
    
     - AssociationCurator is now a SimpleHash subclass instead of wrapping two different hashes
     - Lookups for an association object on a model are done via _batman.get('associations') instead of _batman.associations, leaving the merging logic to _Batman.
    airhorns committed Dec 13, 2011
Commits on Dec 13, 2011
  1. Add some hooks for DOM backed Views.

    -awakeFromHTML
    -view[Will|Did]Appear
    -view[Will|Did]Disappear
    nickjs committed Dec 12, 2011
  2. Rename AssociationCollection to AssociationCurator

     - I found it really confusing that its a collection of Associations, but you can't actually iterate it really.
     - It's also easily confused with AssociationSet, which is totally different.
    airhorns committed Dec 13, 2011
Commits on Dec 12, 2011
  1. Pass user supplied options to Model queries to the storage adapters u…

    …nder data so they end up in the URL.
    
     - Model.load now calls StorageAdapter::perform with {data: options} instead of just options, which sends what you pass into the load call to the Request's data option. This means the behaviour from v0.8.0 remains where parameters you pass to load calls get tacked onto the urls or passed into the url builder functions.
     - Its clearer where this kind of data belongs on the StorageAdapter env now, its in env.options.data instead of being mixed into env.options and thus potentially colliding with the request options in RestStorage.
     - Breaking change, sorry.
    airhorns committed Dec 12, 2011
  2. Make `view.set('node')` update the incoming node with it's template h…

    …tml if available.
    
     - Potentially a breaking change, this wasn't done at all before.
     - Behaviour is however opt in because it only happens when the view specifies an `html` or a `source` property. In the absence of these properties on the view the node won't get updated.
     - This is handy for already instantiated views attached via data-view that insert HTML similar to a partial.
    airhorns committed Dec 12, 2011
Commits on Dec 11, 2011
Commits on Dec 9, 2011
  1. Ensure Views don't expose their internal properties accessed during r…

    …ender as sources for enclosing accessors.
    airhorns committed Dec 9, 2011