babel-plugin-class-autobind
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -37,4 +37,4 @@ 'use strict'; | ||
} | ||
return; | ||
} | ||
return; | ||
} | ||
@@ -41,0 +41,0 @@ path.get('body').pushContainer('body', t.expressionStatement(t.assignmentExpression('=', t.memberExpression(t.thisExpression(), t.identifier(node.key.name)), t.callExpression(t.memberExpression(t.memberExpression(t.thisExpression(), t.identifier(node.key.name), false), t.identifier('bind'), false), [t.thisExpression()])))); |
{ | ||
"description": "binds prefixed class handlers", | ||
"author": "Alexander @coobaha Ryzhikov", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "devDependencies": { |
# babel-plugin-class-autobind | ||
**Please note that this will add implicit magic to your code** | ||
This plugin will autobind all handlers for components listed in directive '@autobind' | ||
prefixes = `on, _on, handle, _handle`; | ||
@@ -6,0 +7,0 @@ ## Example |
@@ -6,3 +6,5 @@ '@autobind Component,Bindable'; | ||
} | ||
//comment | ||
handleMe(){} | ||
/*comment*/ | ||
onMe(){} | ||
@@ -9,0 +11,0 @@ noBind(){} |
@@ -6,3 +6,5 @@ class Component { | ||
} | ||
//comment | ||
handleMe() {} | ||
/*comment*/ | ||
onMe() {} | ||
@@ -9,0 +11,0 @@ noBind() {} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10806
173
75