Created
November 25, 2011 18:09
-
-
Save seebees/1394102 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Problem: area is not defined | |
var mapmove = io | |
.of('/mapmove') | |
.on('connection', function (socket) { | |
var area = 0; | |
socket.on('areachange', function(data) { | |
area = removeSocketFromArea.call(this, data); | |
}); | |
}); | |
function removeSocketFromArea(area) { | |
//remove socket from old area | |
if (area != 0) { | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment