Bump to v3.9.0.

This commit is contained in:
John-David Dalton
2015-12-16 17:50:42 -08:00
parent 26837e7fe2
commit 81e41ca0c8
89 changed files with 1033 additions and 1088 deletions

View File

@@ -20,11 +20,11 @@ define(['./toObject'], function(toObject) {
if (pathKey !== undefined && pathKey in toObject(object)) {
path = [pathKey];
}
var index = -1,
var index = 0,
length = path.length;
while (object != null && ++index < length) {
object = object[path[index]];
while (object != null && index < length) {
object = object[path[index++]];
}
return (index && index == length) ? object : undefined;
}