Fixed self-invoking constructor issue in IE
parent
38a6a4ee6a
commit
0103df3e71
|
@ -203,7 +203,8 @@ var extend = ( function( extending )
|
||||||
if ( abstract_methods.length === 0 )
|
if ( abstract_methods.length === 0 )
|
||||||
{
|
{
|
||||||
var args = null;
|
var args = null;
|
||||||
return function __self()
|
|
||||||
|
var __self = function()
|
||||||
{
|
{
|
||||||
if ( !( this instanceof __self ) )
|
if ( !( this instanceof __self ) )
|
||||||
{
|
{
|
||||||
|
@ -225,6 +226,8 @@ var extend = ( function( extending )
|
||||||
args = null;
|
args = null;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
return __self;
|
||||||
}
|
}
|
||||||
// abstract class
|
// abstract class
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue