backbone_extensions 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -70,7 +70,7 @@
70
70
  if (options.parse) {
71
71
  var associations = {
72
72
  hasMany: function(assocResponse, association, newOptions) {
73
- association.add(_(assocResponse).compact(), newOptions);
73
+ association.add(assocResponse, newOptions);
74
74
  },
75
75
  hasOne: function(assocResponse, association, newOptions) {
76
76
  association.clear({silent: true}).set(assocResponse, newOptions);
@@ -108,9 +108,8 @@
108
108
 
109
109
  this._parsers.push({
110
110
  parseFn: parseFunc,
111
- associationFn: function(response) {
112
- var association = this[associationName]();
113
- return associations[associationType].call(this, association.parse(response), association, mergeAssociationOptions(options, this._options));
111
+ associationFn: function(assocResponse) {
112
+ associations[associationType].call(this, assocResponse, this[associationName](), mergeAssociationOptions(options, this._options));
114
113
  }
115
114
  });
116
115
  }
@@ -1,3 +1,3 @@
1
1
  module BackboneExtensions
2
- VERSION = '0.0.14'
2
+ VERSION = '0.0.15'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backbone_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -126,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  segments:
128
128
  - 0
129
- hash: 2812514914481620134
129
+ hash: -3341261840175240858
130
130
  required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  none: false
132
132
  requirements:
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  version: '0'
136
136
  segments:
137
137
  - 0
138
- hash: 2812514914481620134
138
+ hash: -3341261840175240858
139
139
  requirements: []
140
140
  rubyforge_project:
141
141
  rubygems_version: 1.8.21