diff options
Diffstat (limited to 'dist/plyr.js')
-rw-r--r-- | dist/plyr.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dist/plyr.js b/dist/plyr.js index c897a40e..6eacab7c 100644 --- a/dist/plyr.js +++ b/dist/plyr.js @@ -1301,9 +1301,9 @@ var utils = { // Get a nested value in an object - getDeep: function getDeep(object, value) { - return value.split('.').reduce(function (obj, key) { - return obj[key] || {}; + getDeep: function getDeep(object, path) { + return path.split('.').reduce(function (obj, key) { + return obj && obj[key] || undefined; }, object); }, |