diff --git a/build.json b/build.json index a22e539..9789104 100644 --- a/build.json +++ b/build.json @@ -1,20 +1,23 @@ { "anvil.uglify" : { - "exclude": ["./node/postal.js", "./node/classic-resolver.js"] - }, + "exclude": ["./node/postal.js", "./node/classic-resolver.js"] + }, "anvil.http": { "paths": { - "/": "./" - }, - "port" : 8080 - }, - "output": { - "full": "lib", - "partial": { - "/standard/postal.*": "./example/standard/js", - "/amd/postal.*": [ "./example/amd/js/libs/postal", "./example/node/client/js/lib" ], - "/node/postal.js": "./example/node/messaging" - } - }, - "dependencies": [ "anvil.http", "anvil.uglify" ] + "/": "./" + }, + "port" : 8080 + }, + "anvil.jshint" : { + "all": true + }, + "output": { + "full": "lib", + "partial": { + "/standard/postal.*": "./example/standard/js", + "/amd/postal.*": [ "./example/amd/js/libs/postal", "./example/node/client/js/lib" ], + "/node/postal.js": "./example/node/messaging" + } + }, + "dependencies": [ "anvil.http", "anvil.uglify" ] } \ No newline at end of file diff --git a/src/Api.js b/src/Api.js index dc74235..79812fc 100644 --- a/src/Api.js +++ b/src/Api.js @@ -136,7 +136,7 @@ var postal = { } } if ( postal.configuration.bus.subscriptions[ channel ] && - postal.configuration.bus.subscriptions[ channel ].hasOwnProperty( tpc ) ) { + postal.configuration.bus.subscriptions[ channel ].hasOwnProperty( tpc ) ) { result = postal.configuration.bus.subscriptions[ channel ][ tpc ]; } return result;