Comparing version 1.0.2 to 1.0.3
@@ -32,3 +32,3 @@ module.exports = extends_; | ||
// IE8 and below shim | ||
function T() { this.constructor = Child; } | ||
var T = makeT(Child); | ||
T.prototype = Parent.prototype; | ||
@@ -41,1 +41,10 @@ Child.prototype = new T(); | ||
/** | ||
* @param {Function} Child | ||
* @return {Function} | ||
*/ | ||
function makeT(Child) | ||
{ | ||
return function T() { this.constructor = Child; }; | ||
} | ||
module.exports = getArguments; | ||
var FUNCTION_ARGS = /function[^\(]*\(([^\)]+)/; | ||
var FUNCTION_ARGS = /^\w*function[^\(]*\(([^\)]+)/; | ||
@@ -5,0 +5,0 @@ /** |
{ | ||
"name": "typedef", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Low-level type-centric utility functions for Javascript.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
21620
18
324