* [ios] fix register modules

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

Branch: refs/heads/0.15-dev
Commit: 0895a74a9733844ca39eaf4e6f0705ce21ebdf75
Parents: b25261e
Author: acton393 <zhangxing610...@gmail.com>
Authored: Wed Jun 21 20:07:59 2017 +0800
Committer: acton393 <zhangxing610...@gmail.com>
Committed: Wed Jun 21 20:07:59 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Engine/WXSDKEngine.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/0895a74a/ios/sdk/WeexSDK/Sources/Engine/WXSDKEngine.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Engine/WXSDKEngine.m 
b/ios/sdk/WeexSDK/Sources/Engine/WXSDKEngine.m
index d490b5a..b95ad9d 100644
--- a/ios/sdk/WeexSDK/Sources/Engine/WXSDKEngine.m
+++ b/ios/sdk/WeexSDK/Sources/Engine/WXSDKEngine.m
@@ -65,7 +65,7 @@
 + (void)registerModule:(NSString *)name withClass:(Class)clazz
 {
     WXAssert(name && clazz, @"Fail to register the module, please check if the 
parameters are correct !");
-    if (!clazz || name) {
+    if (!clazz || !name) {
         return;
     }
     NSString *moduleName = [WXModuleFactory registerModule:name 
withClass:clazz];

Reply via email to