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
parent
74dd239de0
commit
e4cd1eabe5
|
@ -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 ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue