Skip to content

Commit

Permalink
chore: remove redundance code
Browse files Browse the repository at this point in the history
  • Loading branch information
SoloJiang committed Sep 11, 2019
1 parent 42327e7 commit 0260527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/jsx-compiler/src/modules/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function transformList(ast, renderItemFunctions, adapter) {
|| innerPath.node.name === forIndex.name
&& !(t.isMemberExpression(innerPath.parent) && innerPath.parent.property !== innerPath.node)
) {
console.log(t.isMemberExpression(innerPath.parent))
console.log(t.isMemberExpression(innerPath.parent));
innerPath.node.__listItem = {
jsxplus: false,
item: forItem.name
Expand Down
3 changes: 1 addition & 2 deletions packages/jsx-compiler/src/modules/style.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const t = require('@babel/types');
const traverse = require('../utils/traverseNodePath');
const genExpression = require('../codegen/genExpression');

const TEMPLATE_AST = 'templateAST';
const DynamicBinding = require('../utils/DynamicBinding');

Expand Down Expand Up @@ -39,7 +39,6 @@ function shouldReplace(path) {
traverse(node.value.expression, {
Identifier(innerPath) {
if (innerPath.node.__listItem) {
console.log(genExpression(node.value.expression))
shouldReplace = false;
innerPath.stop();
}
Expand Down

0 comments on commit 0260527

Please # to comment.