Permalink
Browse files

Rename 'test' socket event to 'navigate'.

  • Loading branch information...
1 parent 1e6a5d4 commit e8ac2e15637894b088d3c5102e287c1414979d2a @reid committed Apr 11, 2012
Showing with 4 additions and 6 deletions.
  1. +2 −2 lib/hub/agent.js
  2. +1 −2 lib/hub/view/public/capture.js
  3. +1 −2 lib/hub/view/public/inject.js
View
@@ -78,11 +78,11 @@ Agent.prototype.connect = function (socket) {
Agent.prototype.next = function () {
if (this.urlQueue.length) {
- this.socketEmitter.emit("test", this.urlQueue.shift());
+ this.socketEmitter.emit("navigate", this.urlQueue.shift());
this.waiting = false;
} else {
this.waiting = true;
- this.socketEmitter.emit("test", this.manager.hub.mountpoint);
+ this.socketEmitter.emit("navigate", this.manager.hub.mountpoint);
this.emit("complete");
}
@@ -27,9 +27,8 @@ var Yeti = {
document.getElementById("test").innerHTML = "All set!";
});
- socket.on("test", function (test) {
+ socket.on("navigate", function (test) {
document.location.href = test;
- //console.log("got test", test);
});
});
}
@@ -37,8 +37,7 @@ function $yetify(firstRunConfiguration) {
return true;
};
- // TODO rename to navigate
- socket.on("test", function (test) {
+ socket.on("navigate", function (test) {
document.location.href = test;
});

0 comments on commit e8ac2e1

Please sign in to comment.