diff options
Diffstat (limited to 'dist/plyr.polyfilled.js')
-rw-r--r-- | dist/plyr.polyfilled.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dist/plyr.polyfilled.js b/dist/plyr.polyfilled.js index b00452fa..dc62c961 100644 --- a/dist/plyr.polyfilled.js +++ b/dist/plyr.polyfilled.js @@ -6690,9 +6690,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); }, |