Skip to content

Commit

Permalink
bugfix: schema with length field of integer type
Browse files Browse the repository at this point in the history
  • Loading branch information
yaronyam authored and jdorn committed Jun 8, 2015
1 parent be4bcfa commit 8aa881b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<obj.length; i++) {
if(callback(i,obj[i])===false) return;
}
Expand Down

0 comments on commit 8aa881b

Please sign in to comment.