backbone_extensions 0.0.19 → 0.0.20
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.
@@ -12,7 +12,7 @@
|
|
12
12
|
.omit('class', 'className', 'inverseOf', 'parseName', 'through').value();
|
13
13
|
},
|
14
14
|
|
15
|
-
buildAssociation: function(associationType, associationName, options) {
|
15
|
+
buildAssociation: function(namespace, associationType, associationName, options) {
|
16
16
|
function through() {
|
17
17
|
function association() {
|
18
18
|
var t = (_(options.through).isFunction() && options.through.call(this)) || _.str.camelize(options.through);
|
@@ -132,7 +132,7 @@
|
|
132
132
|
associations[associationType] = function(name, options) {
|
133
133
|
var associationName = _.str.camelize(name);
|
134
134
|
options = _({}).extend(defaultOptions, globalOptions, options);
|
135
|
-
fn.buildAssociation.call(this, associationType, associationName, options);
|
135
|
+
fn.buildAssociation.call(this, namespace, associationType, associationName, options);
|
136
136
|
fn.parseAssociation.call(this, associationType, associationName, options);
|
137
137
|
return this;
|
138
138
|
};
|
@@ -162,7 +162,7 @@
|
|
162
162
|
});
|
163
163
|
|
164
164
|
source.prototype.initialize = _(source.prototype.initialize).wrap(function(oldInitialize, attrsOrModels, options) {
|
165
|
-
this._options = _(options).clone();
|
165
|
+
this._options = this._options || _(options).clone();
|
166
166
|
oldInitialize.call(this, attrsOrModels, options);
|
167
167
|
});
|
168
168
|
}
|
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.20
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-01-
|
13
|
+
date: 2013-01-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fuubar
|
@@ -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: -3871565157794153210
|
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: -3871565157794153210
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
141
|
rubygems_version: 1.8.24
|