mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-07-10 00:30:34 +08:00
More misc improvements. Cursor Logic, Screen Width, consoleLogs--, Heroku Renaming
This commit is contained in:
+4
-1
@@ -32,6 +32,7 @@ function executeOperation(operation){
|
||||
var type = operation[0];
|
||||
var data = operation[1];
|
||||
var socket = operation[2];
|
||||
// console.log("executeOperation");
|
||||
|
||||
switch(type){
|
||||
case "newNode":
|
||||
@@ -62,8 +63,10 @@ function removeNode(data, socket){
|
||||
var parId = data[2];
|
||||
var author = data[3];
|
||||
// data[3] = null; //improve efficiency.
|
||||
var curtisId = "53e4079cd7dbc73d16c87c53";
|
||||
// console.log("MessageQueue.RemoveNode");
|
||||
|
||||
Node.removeNode(thisId, thisIndex, parId, author._id);
|
||||
Node.removeNode(thisId, thisIndex, parId, curtisId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -154,6 +154,7 @@ function attachLogInListeners(socket){
|
||||
|
||||
|
||||
socket.on("removeNode", function(data, timestampData){
|
||||
console.log("removeNode", data);
|
||||
var queueData = ['removeNode', data, socket];
|
||||
var emitData = ["removeNode", data];
|
||||
syncValidation(data, timestampData, queueData, emitData);
|
||||
|
||||
Reference in New Issue
Block a user