From: Tim Düsterhus Date: Fri, 22 May 2015 19:06:32 +0000 (+0200) Subject: Remove support for implicit 'new' in Template X-Git-Tag: 3.0.0_Beta_1~2350^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e8999a7a2d631498803520d1a317521adea7b0cc;p=GitHub%2FWoltLab%2FWCF.git Remove support for implicit 'new' in Template --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Template.js b/wcfsetup/install/files/js/WoltLab/WCF/Template.js index ea28a33d12..a855d161a6 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Template.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Template.js @@ -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"