1
0
Fork 0

Fixed issue with minified files in IE

Ah - you have to love those "ah-ha!" moments. The issue here is that both
uglify-js and closure compiler mangled the names in such a way that the var and
the function name had different values. In the case of closure compiler, the
function name was used to instantiate the constructor if the 'new' keyword was
omitted. This worked fine in all other tested browsers, but IE handles it
differently.
closure/master
Mike Gerwitz 2011-12-06 18:20:41 -05:00
parent 74dd239de0
commit e4cd1eabe5
1 changed files with 1 additions and 1 deletions

View File

@ -603,7 +603,7 @@ exports.prototype.createConcreteCtor = function( cname, members )
// constructor function to be returned (the name is set to ClassInstance // constructor function to be returned (the name is set to ClassInstance
// because some debuggers (e.g. v8) will show the name of this function for // because some debuggers (e.g. v8) will show the name of this function for
// constructor instances rather than invoking the toString() method) // constructor instances rather than invoking the toString() method)
var ClassInstance = function ClassInstance() function ClassInstance()
{ {
if ( !( this instanceof ClassInstance ) ) if ( !( this instanceof ClassInstance ) )
{ {