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

Commit f9db7aa5 by Mick Hansen

Merge pull request #2604 from overlookmotel/fix-forIn-over-object

Fix forIn rather than each for iterating on object
2 parents 5f4a5637 f940553a
Showing with 1 additions and 1 deletions
......@@ -447,7 +447,7 @@ var Utils = module.exports = {
if (omitNull) {
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))) {
_hash[key] = val;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!