Browse files

fixed now ready

  • Loading branch information...
1 parent 0edee01 commit 4b172236abe9ff03da30b53eab49162aaaeeb7df @ericz ericz committed Oct 26, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 public/js/jazz.js
View
10 public/js/jazz.js
@@ -44,6 +44,11 @@ function connected() {
$(document).ready(function() {
+ now.ready(function(){
+ connected();
+ isConnected = true;
+ });
+
id = (new Date()).getTime();
now.id = id;
now.room = room;
@@ -86,11 +91,6 @@ now.receiveNote = function (type, note) {
now.receiveTick = function() {
- if(!isConnected) {
- connected();
- isConnected = true;
- }
-
var mark = $("<div></div>").addClass("mark");
$("#disp").append(mark);

0 comments on commit 4b17223

Please sign in to comment.