clean up
This commit is contained in:
parent
c553b51817
commit
5e034e7b8b
1 changed files with 9 additions and 11 deletions
|
|
@ -13,7 +13,6 @@ angular.module('bitcoincom.services').factory('shapeshiftService', function ($ht
|
||||||
root.getMarketData = function (coinIn, coinOut, cb) {
|
root.getMarketData = function (coinIn, coinOut, cb) {
|
||||||
root.coinIn = coinIn;
|
root.coinIn = coinIn;
|
||||||
root.coinOut = coinOut;
|
root.coinOut = coinOut;
|
||||||
if (root.coinIn !== undefined && root.coinOut !== undefined){
|
|
||||||
shapeshiftApiService
|
shapeshiftApiService
|
||||||
.marketInfo(root.coinIn, root.coinOut)
|
.marketInfo(root.coinIn, root.coinOut)
|
||||||
.then(function (marketData) {
|
.then(function (marketData) {
|
||||||
|
|
@ -23,7 +22,6 @@ angular.module('bitcoincom.services').factory('shapeshiftService', function ($ht
|
||||||
cb(marketData);
|
cb(marketData);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
root.coins = {
|
root.coins = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue