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

Commit 84a73d6f by Sushant

(performance) improved optClone checks

1 parent 7f90dc69
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!