Comparing version 1.0.2 to 1.0.3
@@ -34,3 +34,5 @@ /**/ void function() { | ||
desc.get = function() { | ||
if(this === base) return value; | ||
// The method must be bindable, If an autobinded method called on prototype, | ||
// Consider the static method has no prototype, so check the type to exclude static method | ||
if(this === base && typeof base !== 'function') return value; | ||
var boundValue = value.bind(this); | ||
@@ -37,0 +39,0 @@ // Save result to itself as a cache |
{ | ||
"name": "autobind", | ||
"main": "autobind.js", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"authors": [ | ||
@@ -6,0 +6,0 @@ "YanagiEiichi <admin@web-tinker.com>" |
{ | ||
"name": "autobind", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "autobind decorator", | ||
@@ -5,0 +5,0 @@ "main": "autobind.js", |
@@ -16,5 +16,5 @@ { | ||
"dependencies": { | ||
"tester": "~0.0.12", | ||
"tester": "~0.0.13", | ||
"requirejs": "~2.1.20" | ||
} | ||
} |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
11975
20
113
1