Added anvil.jshint to build.json and fixed mixed tabs/spaces in api.js

This commit is contained in:
Elijah Manor 2012-09-24 09:01:31 -05:00
parent 20a2f6fd23
commit 983cbf4e68
2 changed files with 19 additions and 16 deletions

View file

@ -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" ]
}

View file

@ -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;