style(jshint): some style fixes and jshint compatibility improved
This commit is contained in:
parent
56315ffd34
commit
6b004fdf8e
4 changed files with 21 additions and 22 deletions
|
|
@ -17,12 +17,7 @@ var traderPlugin = null;
|
|||
var walletPlugin = null;
|
||||
var idVerifierPlugin = null;
|
||||
|
||||
var currentlyUsedPlugins = {
|
||||
ticker: null,
|
||||
transfer: null,
|
||||
trader: null,
|
||||
idVerifier: null
|
||||
};
|
||||
var currentlyUsedPlugins = {};
|
||||
|
||||
|
||||
var cachedConfig = null;
|
||||
|
|
@ -135,7 +130,7 @@ exports.configure = function configure(config) {
|
|||
tickerPlugin,
|
||||
'ticker',
|
||||
deviceCurrency, // device currency
|
||||
function onTickerChange(newTicker, currency) {
|
||||
function onTickerChange(newTicker) {
|
||||
tickerPlugin = newTicker;
|
||||
pollRate();
|
||||
}
|
||||
|
|
@ -335,7 +330,7 @@ function pollBalance(callback) {
|
|||
}
|
||||
|
||||
function pollRate(callback) {
|
||||
logger.debug('polling for rates (' + tickerPlugin.NAME + ')');
|
||||
logger.debug('polling for rates (%s)', tickerPlugin.NAME);
|
||||
|
||||
tickerPlugin.ticker(deviceCurrency, function(err, resRates) {
|
||||
if (err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue