summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNo'am Rosenthal <noam.rosenthal@nokia.com>2011-07-13 17:22:00 -0700
committerNo'am Rosenthal <noam.rosenthal@nokia.com>2011-07-13 17:22:00 -0700
commit308583ae677a8123bb9e90268e510c814e9753cd (patch)
tree5c23bdf508a269c432fcac911b5c8fe3f3812f80 /examples
parent196f57c034b3deb96f87d1a91011d5be21813b0c (diff)
downloadqtwebchannel-308583ae677a8123bb9e90268e510c814e9753cd.tar.gz
Fix some indentations, and remove more dead code
Diffstat (limited to 'examples')
-rw-r--r--examples/qmlapp/index.html6
-rw-r--r--examples/qmlapp/qmlapp.qml2
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'}));
}