export default {
    methods: {
        getItemName: (item) => {
            if (!item) {
                return null;
            }

            return item.name;
        },

        isImage: (file) => {
            return file.mimeType.indexOf('image') != -1;
        },

        isFolder: (file) => {
            return (file.mimeType == 'folder');
        },

        mediaManagerNotify: (notices, type, time) => {

            if (!type) type = 'inverse';
            if (!time) time = 4000;

            if (typeof notices == 'object') {
                notices.forEach(function(notice) {
                    window.eventHub.$emit('media-manager-notification', notice, type, time);
                });
                return;
            }
            window.eventHub.$emit('media-manager-notification', notices, type, time);
        },
    }
};

@@ -403,85 +403,21 @@
 type
-, time) =%3E %7B%0A%0A            if (!type) type = 'inverse';%0A            if (!time)
+ = 'inverse',
  tim
@@ -424,17 +424,22 @@
 e = 4000
-;
+) =%3E %7B
 %0A%0A      

Use ES6 default arguments #36