allow debug event

This commit is contained in:
Seven Du 2013-07-30 23:58:15 +08:00
parent 8133e58acb
commit 5454a95f5b
2 changed files with 6 additions and 2 deletions

View File

@ -715,10 +715,15 @@ App.usersController = Ember.ArrayController.create({
});
App.initialize();
var global_debug_event = false;
function eventCallback(data) {
console.log(data["Event-Name"]);
if (global_debug_event) {
console.log(data);
}
if (data["Event-Name"] == "CHANNEL_CREATE") {
var channel = {
uuid: data["Unique-ID"],

View File

@ -777,7 +777,6 @@
socket.onmessage =function(msg) {
// console.log(msg.data);
var data = JSON.parse(msg.data);
console.log(data["Event-Name"]);
eventCallback(data);
}