diff options
author | No'am Rosenthal <noam.rosenthal@nokia.com> | 2011-07-13 17:22:00 -0700 |
---|---|---|
committer | No'am Rosenthal <noam.rosenthal@nokia.com> | 2011-07-13 17:22:00 -0700 |
commit | 308583ae677a8123bb9e90268e510c814e9753cd (patch) | |
tree | 5c23bdf508a269c432fcac911b5c8fe3f3812f80 /examples | |
parent | 196f57c034b3deb96f87d1a91011d5be21813b0c (diff) | |
download | qtwebchannel-308583ae677a8123bb9e90268e510c814e9753cd.tar.gz |
Fix some indentations, and remove more dead code
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qmlapp/index.html | 6 | ||||
-rw-r--r-- | examples/qmlapp/qmlapp.qml | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/qmlapp/index.html b/examples/qmlapp/index.html index 2fc9715..b6a7aa9 100644 --- a/examples/qmlapp/index.html +++ b/examples/qmlapp/index.html @@ -4,20 +4,20 @@ <script> window.onload = function() { var textArea = document.querySelector("textarea"); - function debug(x) { + function output(x) { textArea.value = textArea.value + x + "\n"; } navigator.webChannel.subscribe( "incoming-call", function(message) { - debug(message); + output(message); } ); navigator.webChannel.execute( {a:"This is a request from HTML"}, function(response) { - debug(response.b); + output(response.b); } ); }; diff --git a/examples/qmlapp/qmlapp.qml b/examples/qmlapp/qmlapp.qml index b6049a6..bdd1b4c 100644 --- a/examples/qmlapp/qmlapp.qml +++ b/examples/qmlapp/qmlapp.qml @@ -9,7 +9,7 @@ Rectangle { id: webChannel onExecute: { - var data = JSON.parse(requestData ); + var data = JSON.parse(requestData); txt.text = data.a; response.send(JSON.stringify({b:'This is a response from QML'})); } |