You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ky...@apache.org on 2018/11/13 03:02:00 UTC
[incubator-weex] branch master updated: [core][data_render] support
class binding (#1740)
This is an automated email from the ASF dual-hosted git repository.
kyork pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git
The following commit(s) were added to refs/heads/master by this push:
new 476334e [core][data_render] support class binding (#1740)
476334e is described below
commit 476334e2678c9de74a7a6f88262043c5bc5e6b58
Author: yxping <yx...@users.noreply.github.com>
AuthorDate: Tue Nov 13 11:01:53 2018 +0800
[core][data_render] support class binding (#1740)
---
weex_core/Source/core/data_render/parser.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/weex_core/Source/core/data_render/parser.cc b/weex_core/Source/core/data_render/parser.cc
index db3cd7d..38a1815 100644
--- a/weex_core/Source/core/data_render/parser.cc
+++ b/weex_core/Source/core/data_render/parser.cc
@@ -90,7 +90,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();