diff --git a/base.js b/base.js index d623d78..caa84fc 100644 --- a/base.js +++ b/base.js @@ -384,8 +384,10 @@ define(["dojo"], function(dojo){ // scope = scope || d.global; for(var key in obj){ - // FIXME: i feel like these are backwards? should it be function(key, value) ? - callback.call(scope, obj[key], key, obj); + if(obj.hasOwnProperty(key) { + // FIXME: i feel like these are backwards? should it be function(key, value) ? + callback.call(scope, obj[key], key, obj); + } } }