feature/default_network_editable
Dan 7 years ago
parent 20a075657f
commit 23acddf8f6
  1. 8
      app/scripts/controllers/currency.js
  2. 4
      app/scripts/controllers/shapeshift.js
  3. 4
      app/scripts/lib/nodeify.js

@ -1,4 +1,4 @@
const ObservableStore = require('obs-store')
const ObservableStore = require('obs-store')
const extend = require('xtend')
// every ten minutes
@ -48,7 +48,7 @@ class CurrencyController {
/**
* A setter for the currentCurrency property
*
* @params {string} currentCurrency The new currency to set as the currentCurrency in the store
* @param {string} currentCurrency The new currency to set as the currentCurrency in the store
*
*/
setCurrentCurrency (currentCurrency) {
@ -68,7 +68,7 @@ class CurrencyController {
/**
* A setter for the conversionRate property
*
* @params {number} conversionRate The new rate to set as the conversionRate in the store
* @param {number} conversionRate The new rate to set as the conversionRate in the store
*
*/
setConversionRate (conversionRate) {
@ -89,7 +89,7 @@ class CurrencyController {
/**
* A setter for the conversionDate property
*
* @params {number} conversionDate The date, expressed in milliseconds since midnight of January 1, 1970, that the
* @param {number} conversionDate The date, expressed in milliseconds since midnight of January 1, 1970, that the
* conversionRate was set
*
*/

@ -117,7 +117,7 @@ class ShapeshiftController {
* Saves an updated to a ShapeShiftTx in the shapeShiftTxList. If the passed ShapeShiftTx is not in the
* shapeShiftTxList, nothing happens.
*
* @params {ShapeShiftTx} tx The updated tx to save, if it exists in the current shapeShiftTxList
* @param {ShapeShiftTx} tx The updated tx to save, if it exists in the current shapeShiftTxList
*
*/
saveTx (tx) {
@ -132,7 +132,7 @@ class ShapeshiftController {
/**
* Removes a ShapeShiftTx from the shapeShiftTxList
*
* @params {ShapeShiftTx} tx The tx to remove
* @param {ShapeShiftTx} tx The tx to remove
*
*/
removeShapeShiftTx (tx) {

@ -5,8 +5,8 @@ const noop = function () {}
* A generator that returns a function which, when passed a promise, can treat that promise as a node style callback.
* The primse advantage being that callbacks are better for error handling.
*
* @params {Function} fn The function to handle as a callback
* @params {Object} context The context in which the fn is to be called, most often a this reference
* @param {Function} fn The function to handle as a callback
* @param {Object} context The context in which the fn is to be called, most often a this reference
*
*/
module.exports = function nodeify (fn, context) {

Loading…
Cancel
Save