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

Commit f940553a by overlookmotel

Fix forIn rather than each for iterating on object

1 parent d5cef99f
Showing with 1 additions and 1 deletions
...@@ -447,7 +447,7 @@ var Utils = module.exports = { ...@@ -447,7 +447,7 @@ var Utils = module.exports = {
if (omitNull) { if (omitNull) {
var _hash = {}; var _hash = {};
Utils._.each(hash, function(val, key) { Utils._.forIn(hash, function(val, key) {
if (options.allowNull.indexOf(key) > -1 || key.match(/Id$/) || ((val !== null) && (val !== undefined))) { if (options.allowNull.indexOf(key) > -1 || key.match(/Id$/) || ((val !== null) && (val !== undefined))) {
_hash[key] = val; _hash[key] = val;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!