mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
replaced ){ with ) {
This commit is contained in:
parent
76daceb2e7
commit
551fc943c9
20 changed files with 56 additions and 56 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue