Bump to v3.9.2.

This commit is contained in:
jdalton
2015-05-24 01:44:03 -07:00
parent b6f9660ab0
commit 314048b069
23 changed files with 169 additions and 92 deletions

View File

@@ -35,13 +35,13 @@ function set(object, path, value) {
var index = -1,
length = path.length,
endIndex = length - 1,
lastIndex = length - 1,
nested = object;
while (nested != null && ++index < length) {
var key = path[index];
if (isObject(nested)) {
if (index == endIndex) {
if (index == lastIndex) {
nested[key] = value;
} else if (nested[key] == null) {
nested[key] = isIndex(path[index + 1]) ? [] : {};