Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed jQuery(f($))

  • Loading branch information...
commit f79c309222be38646df7bdff40d2b157641dfa3c 1 parent f9b83b2
@zentooo authored
Showing with 3 additions and 4 deletions.
  1. +2 −3 bin/replica
  2. +1 −1  public/js/replica.js
View
5 bin/replica
@@ -34,6 +34,7 @@ function main(args, options) {
function initSocket(port, debug) {
var socket;
+
server = http.createServer(function (req, res) {
var url = URL.parse(req.url),
path = url.pathname;
@@ -44,7 +45,6 @@ function initSocket(port, debug) {
else {
serveStatic(req, res, path, debug);
}
-
});
server.listen(port);
@@ -56,6 +56,7 @@ function initSocket(port, debug) {
// override log function to suppress Socket.IO's log
socket = io.listen(server, { log: function() {} } );
}
+
return socket;
}
@@ -138,7 +139,6 @@ function initListeners(socket) {
});
});
-
interface.addListener("line", function(cmd) {
clients.forEach(function(client) {
client.send(cmd);
@@ -151,7 +151,6 @@ function initListeners(socket) {
interface.output.destroy();
server.close();
});
-
}
function heredoc(f) {
View
2  public/js/replica.js
@@ -1,4 +1,4 @@
-jQuery(function() {
+jQuery(function($) {
var socket = new io.Socket();
socket.connect();
Please sign in to comment.
Something went wrong with that request. Please try again.