summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-08-16 07:43:57 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-08-16 07:43:57 +0200
commit5647f85a3cc88e8b650164d56839448abb5e0229 (patch)
tree26925309bd8796a8edc5ec0d74f283c97a0c215e /apps
parentb082278f0404efc65b72d7cf0516d2de52f1393b (diff)
downloadnextcloud-server-5647f85a3cc88e8b650164d56839448abb5e0229.tar.gz
nextcloud-server-5647f85a3cc88e8b650164d56839448abb5e0229.zip
Object.values polyfill
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/fileactions.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index ac3afba038d..8ce8eddb0b0 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -558,6 +558,20 @@
}
});
+ function objectValues(obj) {
+ var res = [];
+ for (var i in obj) {
+ if (obj.hasOwnProperty(i)) {
+ res.push(obj[i]);
+ }
+ }
+ return res;
+ }
+ // polyfill
+ if (!Object.values) {
+ Object.values = objectValues;
+ }
+
var menuActions = Object.values(this.actions.all).filter(function (action) {
return action.type !== OCA.Files.FileActions.TYPE_INLINE;
});