Merge pull request #16 from elijahmanor/add-anvil-jshint

Added anvil.jshint to build.json and fixed mixed tabs/spaces in api.js
This commit is contained in:
Jim Cowart 2012-09-24 09:41:45 -07:00
commit 4f86f27831
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;