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

Commit 1ba6f163 by Mick Hansen

Merge pull request #5670 from sushantdhiman/fix-3414

Performance improvement for #3414
2 parents 7f90dc69 84a73d6f
Showing with 1 additions and 1 deletions
......@@ -311,7 +311,7 @@ var optClone = Model.prototype.__optClone = Model.prototype.$optClone = function
options = options || {};
return Utils.cloneDeep(options, function(elem) {
// The InstanceFactories used for include are pass by ref, so don't clone them.
if (elem &&
if (elem && typeof elem === 'object' &&
(
elem._isSequelizeMethod ||
elem instanceof Model ||
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!