不要怂,就是干,撸起袖子干!

Commit 1d99a072 by Verdier

Revert scopeInclude clone. Better fixed by #4518

1 parent abb9bd96
Showing with 1 additions and 4 deletions
......@@ -2542,7 +2542,7 @@ Model.prototype.$getDefaultTimestamp = function(attr) {
// Inject current scope into options. Includes should have been conformed (conformOptions) before calling this
Model.$injectScope = function (scope, options) {
scope = optClone(scope);
var filteredScope = _.omit(scope, 'include'); // Includes need special treatment
_.defaults(options, filteredScope);
......@@ -2562,9 +2562,6 @@ Model.$injectScope = function (scope, options) {
}
return sameModel;
})) {
// Do not inject Model.$scope.include directly,
// make a shallow copy (#4470).
scopeInclude = _.clone(scopeInclude);
options.include.push(scopeInclude);
}
});
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!