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/02/28 02:29:57 UTC

[17/50] incubator-weex git commit: * [ios] instance handle js exception

* [ios] instance handle js exception


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

Branch: refs/heads/0.11-dev
Commit: cca694e46eca9adaf770836f8ab2d2537c3393bc
Parents: b718000
Author: acton393 <zh...@gmail.com>
Authored: Wed Feb 22 15:13:17 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Wed Feb 22 15:13:17 2017 +0800

----------------------------------------------------------------------
 ios/playground/WeexDemo/WXDemoViewController.m | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/cca694e4/ios/playground/WeexDemo/WXDemoViewController.m
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/WXDemoViewController.m b/ios/playground/WeexDemo/WXDemoViewController.m
index d354078..038a478 100644
--- a/ios/playground/WeexDemo/WXDemoViewController.m
+++ b/ios/playground/WeexDemo/WXDemoViewController.m
@@ -132,6 +132,10 @@
         #endif
     };
     
+    _instance.onJSException = ^(WXJSExceptionInfo* jsException){
+        // handle js exception
+    };
+    
     _instance.renderFinish = ^(UIView *view) {
          WXLogDebug(@"%@", @"Render Finish...");
         [weakSelf updateInstanceState:WeexInstanceAppear];