Skip to content

Commit

Permalink
#20 cleaning commented-out code
Browse files Browse the repository at this point in the history
  • Loading branch information
tracend committed Oct 11, 2012
1 parent 29898fa commit a141b4e
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions examples/chat/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,32 +50,22 @@
}
});


/*
var evt = document.createEvent(event);
evt.initEvent(event,true,true);
evt.method = method;
evt.data = data;
collection.dispatchEvent(evt);
*/
});

}

function loadData(){

//setTimeout(function(){
// sync with crudr
var req = {
method: "read",
model: {}
};
//console.log("load");

crudr.sync(model.socket, req, { error: function(err){ console.log(err) }, success: function( response ){
//console.log( response );
}
});
//}, 8000);

}

Expand All @@ -86,23 +76,16 @@

var message = new Message();

model = buildBackend( message );

setupEvents();

setupTriggers();

//setTimeout(function(){
model = buildBackend( message );

loadData();

//}, 2000);
loadData();

});

/*
crudr.on("", { auth: false }, function( response ){
});
*/

});
</script>
Expand Down

0 comments on commit a141b4e

Please sign in to comment.