1
0
Fork 0

Fixed self-invoking constructor issue in IE

closure/master
Mike Gerwitz 2010-12-29 09:43:00 -05:00
parent 38a6a4ee6a
commit 0103df3e71
1 changed files with 4 additions and 1 deletions

View File

@ -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