diff --git a/src/utilities.js b/src/utilities.js index 55884e9d6..140e1173a 100644 --- a/src/utilities.js +++ b/src/utilities.js @@ -68,7 +68,7 @@ var $extend = function(destination) { var $each = function(obj,callback) { if(!obj) return; var i; - if(typeof obj.length === 'number') { + if(!obj.hasOwnProperty('length') && typeof obj.length === 'number') { for(i=0; i