Fix JSHint errors

This commit is contained in:
Corey Farwell
2014-11-02 21:56:45 -05:00
parent b773e57490
commit 51d79f3e3b
4 changed files with 17 additions and 21 deletions

View File

@@ -10,8 +10,8 @@
method: object.call,
params: object.args,
id: object._id
}
};
};
}
function formatJsonRpcMessage(message) {
var object = JSON.parse(message);
@@ -20,7 +20,7 @@
_id: object.id,
data: object.result
};
};
}
HttpRpcProvider.prototype.sendRequest = function (payload, cb) {
var data = formatJsonRpcObject(payload);
@@ -32,7 +32,7 @@
if (request.readyState === 4 && cb) {
cb(request);
}
}
};
};
HttpRpcProvider.prototype.send = function (payload) {