Fixed shallow return value for clipboard access
authorAlexander Ebert <ebert@woltlab.com>
Fri, 9 Jun 2017 14:53:12 +0000 (16:53 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 9 Jun 2017 14:53:12 +0000 (16:53 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Clipboard.js

index 6e83f65ba39af9dc1a3b52c59804f35eff64e14e..ceb43cc4f3d00b1e0fb2643cb89f3c93b350f46b 100644 (file)
@@ -23,8 +23,7 @@ define(
        "use strict";
        
        if (!COMPILER_TARGET_DEFAULT) {
-               var Fake = function() {};
-               Fake.prototype = {
+               return {
                        setup: function() {},
                        reload: function() {},
                        _initContainers: function() {},
@@ -42,7 +41,6 @@ define(
                        showEditor: function() {},
                        unmark: function() {}
                };
-               return Fake;
        }
        
        var _containers = new Dictionary();