You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ha...@apache.org on 2018/03/14 03:19:25 UTC

incubator-weex-site git commit: Update extend-android.md

Repository: incubator-weex-site
Updated Branches:
  refs/heads/master ad36ef40d -> de5618356


Update extend-android.md

Changed 'mehtod' to 'method' in 2 places

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

Branch: refs/heads/master
Commit: de5618356337fdad77f5c17f39eedf2a067c7dc9
Parents: ad36ef4
Author: Alexander <al...@gmail.com>
Authored: Tue Mar 13 23:14:06 2018 -0400
Committer: GitHub <no...@github.com>
Committed: Tue Mar 13 23:14:06 2018 -0400

----------------------------------------------------------------------
 source/guide/extend-android.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/de561835/source/guide/extend-android.md
----------------------------------------------------------------------
diff --git a/source/guide/extend-android.md b/source/guide/extend-android.md
index c23f218..49ce76d 100644
--- a/source/guide/extend-android.md
+++ b/source/guide/extend-android.md
@@ -12,7 +12,7 @@ version: 2.1
 
 1. Customize modules class must extend from WXModule. 
 2. Extended method must add @JSMethod (uiThread = false or true) annotation, which determines whether the method is run on UI thread.
-3. The access level of mehtod must be `public`.
+3. The access level of method must be `public`.
 4. Do not obfuscate code using tools like ProGuard.
 5. Extended method suppport the data type of int, double, float, String, Map, List as its param.
 7. Register the module: `WXSDKEngine.registerModule("MyModule", MyModule.class);`or else may report an error: `ReportException :undefined:9: TypeError: Object #<Object> has no method 'xxx'` .
@@ -85,7 +85,7 @@ event.openURL("http://www.github.com",function(resp){ console.log(resp.result);
 
 1. Customize components must extend from WXComponent
 2. Use the `@WXComponentProp(name = value(value is attr or style))` annotation to let the update of attribute or style be recognized automatically.
-3. The access levels of mehtod must be **public**
+3. The access levels of method must be **public**
 4. Customize can not be obfuscated by tools like ProGuard
 5. Component method with the annotation of `@JSMethod` can 
 7. Weex params can be int, double, float, String, Map, List, Array