fixing index call and meta.js

This commit is contained in:
Julian Lam
2014-01-16 15:57:13 -05:00
parent adf4a5c407
commit 97eff9c8a1
2 changed files with 8 additions and 7 deletions

View File

@@ -133,7 +133,7 @@ Sockets.init = function() {
socket.on('*', function(payload, callback) {
function callMethod(method) {
method.call(socket, args[0]?args[0]:null, function(err, result) {
method.call(null, socket, payload.args.length ? payload.args[0] : null, function(err, result) {
if(callback) {
callback(err?{message:err.message}:null, result);
}