Avoid accidental matches on native object functions (filter, map, etc.)

This commit is contained in:
Nathan Gray 2012-04-04 20:56:09 +00:00
parent 09ac4244cb
commit b240e9eea5

View File

@ -172,7 +172,7 @@ var et2_arrayMgr = Class.extend({
// Abort if the current entry is not an object (associative array) and // Abort if the current entry is not an object (associative array) and
// we should descend further into it. // we should descend further into it.
var isObject = typeof entry === 'object'; var isObject = typeof entry === 'object';
if (!isObject && !_referenceInto || entry == null) if (!isObject && !_referenceInto || entry == null || jQuery.isEmptyObject(entry))
{ {
return null; return null;
} }