coope/lst/new-global-fix.js

7 lines
167 B
JavaScript

if ( !( this instanceof ctor ) )
{
return new ctor.apply(
null, arguments
);
}