You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/06/20 04:12:19 UTC

incubator-weex git commit: * [android] Allow create DOM context when call 'addRule'

Repository: incubator-weex
Updated Branches:
  refs/heads/0.14-dev 29fb9a8c0 -> 1f6d9976b


* [android] Allow create DOM context when call 'addRule'

See more https://issues.apache.org/jira/browse/WEEX-47


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/1f6d9976
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/1f6d9976
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/1f6d9976

Branch: refs/heads/0.14-dev
Commit: 1f6d9976b7d1f68c8b654e74350a245dea576025
Parents: 29fb9a8
Author: sospartan <so...@apache.org>
Authored: Tue Jun 20 12:10:44 2017 +0800
Committer: sospartan <so...@apache.org>
Committed: Tue Jun 20 12:10:44 2017 +0800

----------------------------------------------------------------------
 android/sdk/src/main/java/com/taobao/weex/dom/WXDomModule.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/1f6d9976/android/sdk/src/main/java/com/taobao/weex/dom/WXDomModule.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/dom/WXDomModule.java b/android/sdk/src/main/java/com/taobao/weex/dom/WXDomModule.java
index bb1a987..cd9180e 100644
--- a/android/sdk/src/main/java/com/taobao/weex/dom/WXDomModule.java
+++ b/android/sdk/src/main/java/com/taobao/weex/dom/WXDomModule.java
@@ -100,7 +100,7 @@ public final class WXDomModule extends WXModule {
         WXLogUtils.e("Unknown dom action.");
       }
       if(action instanceof DOMAction){
-        postAction((DOMAction)action, CREATE_BODY.equals(method));
+        postAction((DOMAction)action, CREATE_BODY.equals(method) || ADD_RULE.equals(method));
       }else {
         postAction((RenderAction)action);
       }