backbone_extensions 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70,7 +70,7 @@
|
|
70
70
|
if (options.parse) {
|
71
71
|
var associations = {
|
72
72
|
hasMany: function(assocResponse, association, newOptions) {
|
73
|
-
association.add(
|
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(
|
112
|
-
|
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
|
}
|
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.
|
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:
|
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:
|
138
|
+
hash: -3341261840175240858
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
141
|
rubygems_version: 1.8.21
|