From: Frederic PAUT Date: Wed, 3 Jul 2013 13:03:16 +0000 (+0200) Subject: tracing dictionnary result one time only X-Git-Tag: upstream/0.6.1~34^2~2 X-Git-Url: http://review.tizen.org/git/?p=contrib%2Fcloudeebus.git;a=commitdiff_plain;h=6f757f4992deaa887e3b283956b90b9e2bf8fadf tracing dictionnary result one time only --- diff --git a/doc/agent/client.html b/doc/agent/client.html index 27ddc6e..123779c 100644 --- a/doc/agent/client.html +++ b/doc/agent/client.html @@ -48,13 +48,15 @@ function gotDictResult(result) { function gotDivResult(result) { cloudeebus.log("gotDivResult: " + result); - var dictionary = {Name: "Mickey", - Sisters: [""], - Married: true, - Divorced: 0, - Friends: ["Donald", "Dingo"], - Others: [""]}; - sampleProxy.Variant(dictionary).then(gotDictResult,errorCB); + if (result % 1 == 0) { + var dictionary = {Name: "Mickey", + Sisters: [""], + Married: true, + Divorced: 0, + Friends: ["Donald", "Dingo"], + Others: [""]}; + sampleProxy.Variant(dictionary).then(gotDictResult,errorCB); + } // sampleProxy.Release(); } @@ -88,7 +90,7 @@ function connectSuccess() { cloudeebus.SessionBus().getObject("org.cloudeebus.Sample", "/org/cloudeebus/Sample", gotProxy, errorCB); } -cloudeebus.connect("ws://localhost:9002", manifest, connectSuccess, errorCB); +cloudeebus.connect("ws://localhost:9003", manifest, connectSuccess, errorCB);