diff options
author | Sam Potts <sam@potts.es> | 2018-03-27 10:41:06 +1100 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-03-27 10:41:06 +1100 |
commit | 5d079da1b8303b25c4fb5eb176c36403920d5d34 (patch) | |
tree | fc746bae14ae5c6161503b3a0fb0027c091d5ffa /dist/plyr.js | |
parent | 9c1bc6ab08e4fe68565a12f76b58684f4c6a8354 (diff) | |
download | plyr-5d079da1b8303b25c4fb5eb176c36403920d5d34.tar.lz plyr-5d079da1b8303b25c4fb5eb176c36403920d5d34.tar.xz plyr-5d079da1b8303b25c4fb5eb176c36403920d5d34.zip |
Use object.entries
Diffstat (limited to 'dist/plyr.js')
-rw-r--r-- | dist/plyr.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dist/plyr.js b/dist/plyr.js index d9879360..8acc5b14 100644 --- a/dist/plyr.js +++ b/dist/plyr.js @@ -1196,8 +1196,12 @@ var utils = { return; } - Object.keys(attributes).forEach(function (key) { - element.setAttribute(key, attributes[key]); + Object.entries(attributes).forEach(function (_ref) { + var _ref2 = slicedToArray(_ref, 2), + key = _ref2[0], + value = _ref2[1]; + + element.setAttribute(key, value); }); }, |