replaced ){ with ) {

This commit is contained in:
logsol 2012-07-28 15:00:59 +02:00
parent 76daceb2e7
commit 551fc943c9
20 changed files with 56 additions and 56 deletions

View file

@ -6,17 +6,17 @@ function (Parser) {
var Helper = {}
Helper.encodeCommand = function (command, options){
Helper.encodeCommand = function (command, options) {
return Parser.encode(Helper.assemble(command, options));
}
Helper.assemble = function (command, options){
Helper.assemble = function (command, options) {
var commands = {};
commands[command] = options || null;
return commands;
}
Helper.runCommands = function (message, callback){
Helper.runCommands = function (message, callback) {
var commands = Parser.decode(message);
for(var command in commands) {

View file

@ -5,11 +5,11 @@ function () {
var Parser = {};
Parser.encode = function (message){
Parser.encode = function (message) {
return JSON.stringify(message);
}
Parser.decode = function (message){
Parser.decode = function (message) {
return JSON.parse(message);
}