Remove support for implicit 'new' in Template
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 22 May 2015 19:06:32 +0000 (21:06 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 22 May 2015 19:06:32 +0000 (21:06 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Template.js

index ea28a33d126127fc705aaaea24e28633130c8f35..a855d161a6ede59b3e5d4963d08478aca86f00c3 100644 (file)
@@ -30,10 +30,6 @@ define(['./Template.grammar', './StringUtil', 'Language'], function(parser, Stri
                // Fetch Language, as it cannot be provided because of a circular dependency
                if (Language === undefined) Language = require('Language');
                
-               if (!(this instanceof Template)) {
-                       return new Template(template);
-               }
-               
                try {
                        template = parser.parse(template);
                        template = "var tmp = {};\n"