projects
/
contrib
/
cloudeebus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2fecc8a
)
Fix typo
author
Frederic PAUT
<frederic.paut@linux.intel.com>
Mon, 22 Jul 2013 14:41:44 +0000
(16:41 +0200)
committer
Frederic PAUT
<frederic.paut@linux.intel.com>
Mon, 22 Jul 2013 14:41:44 +0000
(16:41 +0200)
doc/agent/server.html
patch
|
blob
|
history
diff --git
a/doc/agent/server.html
b/doc/agent/server.html
index
b975b8e
..
63ef99b
100644
(file)
--- a/
doc/agent/server.html
+++ b/
doc/agent/server.html
@@
-70,7
+70,7
@@
function connectSuccess() {
cloudeebus.SessionBus().addService("org.cloudeebus.Sample").then(addAgent, errorCB);
}
cloudeebus.SessionBus().addService("org.cloudeebus.Sample").then(addAgent, errorCB);
}
-if (!window.
sampleProxy
)
+if (!window.
gService
)
cloudeebus.connect("ws://localhost:9003", manifest, connectSuccess, errorCB);
</textarea>
<br>
cloudeebus.connect("ws://localhost:9003", manifest, connectSuccess, errorCB);
</textarea>
<br>
@@
-79,13
+79,11
@@
if (!window.sampleProxy)
<br>
<textarea style="width:80%" rows="7" id="removeCmd">
function removeService() {
<br>
<textarea style="width:80%" rows="7" id="removeCmd">
function removeService() {
-
cloudeebus.log("Agent " + JSON.stringify(window.gAgent)
);
-
cloudeebus.log("Removing service
");
- window.gService
.remove()
+
window.gService.remove(
);
+
cloudeebus.log("Service removed
");
+ window.gService
= null;
}
}
-cloudeebus.log("Service = " + JSON.stringify(window.gService));
-cloudeebus.log("Removing agent " + JSON.stringify(window.gAgent));
window.gService.removeAgent(window.gAgent).then(removeService, null);
</textarea>
<br>
window.gService.removeAgent(window.gAgent).then(removeService, null);
</textarea>
<br>