Skip to content

Commit

Permalink
[core][data_render] support class binding
Browse files Browse the repository at this point in the history
  • Loading branch information
yxping committed Nov 5, 2018
1 parent 257cdcd commit 75db0d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion weex_core/Source/core/data_render/parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ struct ASTParser final {
args.push_back(
factory_->NewStringConstant(wrap_prefix + class_style.string_value()));
} else {
args.push_back(ParseBindingExpression(class_style));
args.push_back(factory_->NewBinaryExpression(
BinaryOperation::kAddition,
factory_->NewStringConstant(wrap_prefix),
ParseBindingExpression(class_style)));
}
statement->PushExpression(factory_->NewCallExpression(func_id, args));
args.pop_back();
Expand Down

0 comments on commit 75db0d1

Please sign in to comment.