Fix formatting
This commit is contained in:
parent
7d847f25dc
commit
cd3ad32bb7
|
@ -65,10 +65,10 @@ function extendScopeMethods(definition, scopeMethods, ext) {
|
||||||
customMethods = ext.call(definition, scopeMethods, relationClass);
|
customMethods = ext.call(definition, scopeMethods, relationClass);
|
||||||
} else if (typeof ext === 'object') {
|
} else if (typeof ext === 'object') {
|
||||||
function createFunc(definition, relationMethod) {
|
function createFunc(definition, relationMethod) {
|
||||||
return function() {
|
return function() {
|
||||||
var relation = new relationClass(definition, this);
|
var relation = new relationClass(definition, this);
|
||||||
return relationMethod.apply(relation, arguments);
|
return relationMethod.apply(relation, arguments);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
for (var key in ext) {
|
for (var key in ext) {
|
||||||
var relationMethod = ext[key];
|
var relationMethod = ext[key];
|
||||||
|
|
Loading…
Reference in New Issue