Update web-demo.we

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

Branch: refs/heads/release
Commit: 5b59d18f38ba5a16cb2070c860b45fec3f30308b
Parents: 75101d5
Author: iamqk <ia...@msn.com>
Authored: Thu Sep 21 16:06:28 2017 +0800
Committer: GitHub <nore...@github.com>
Committed: Thu Sep 21 16:06:28 2017 +0800

----------------------------------------------------------------------
 examples/component/web-demo.we | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b59d18f/examples/component/web-demo.we
----------------------------------------------------------------------
diff --git a/examples/component/web-demo.we b/examples/component/web-demo.we
index 2be930c..0b7e953 100644
--- a/examples/component/web-demo.we
+++ b/examples/component/web-demo.we
@@ -46,6 +46,7 @@
     module.exports = {
         methods: {
             goback: function() {
+                var $webview = require('@weex-module/webview');
                 var webElement = this.$el('webview');
                 $webview.goBack(webElement.ref);
              },
@@ -70,4 +71,4 @@
             }
         }
     }
-</script>
\ No newline at end of file
+</script>

Reply via email to