You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2018/11/13 03:01:55 UTC

[GitHub] YorkShen closed pull request #1740: *[core][data_render] support class binding

YorkShen closed pull request #1740: *[core][data_render] support class binding
URL: https://github.com/apache/incubator-weex/pull/1740
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/weex_core/Source/core/data_render/parser.cc b/weex_core/Source/core/data_render/parser.cc
index db3cd7df4b..38a18159e2 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();


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services