Skip to content

Commit

Permalink
better checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Lasky committed Oct 23, 2015
1 parent df7021d commit d269fa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/js/datautils.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
p = path.split(".");
}
return p.reduce(function(prev, curr) {
if (!prev || !(curr in prev)) return null;
if (!_isType(prev, "object") || !(curr in prev)) return null;
return prev[curr];
}, object);
}
Expand Down Expand Up @@ -233,4 +233,4 @@

})(window.StrandLib = window.StrandLib || {});

</script>
</script>

0 comments on commit d269fa3

Please sign in to comment.