Skip to content

Commit 618c703

Browse files
authored
Merge pull request phaserjs#4322 from kyranet/patch-1
fix: GetValue not checking for the existence of '.' correctly
2 parents 4ac6553 + f83f63f commit 618c703

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/object/GetValue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var GetValue = function (source, key, defaultValue)
3030
{
3131
return source[key];
3232
}
33-
else if (key.indexOf('.'))
33+
else if (key.indexOf('.') !== -1)
3434
{
3535
var keys = key.split('.');
3636
var parent = source;

0 commit comments

Comments
 (0)