Skip to content

Commit

Permalink
FIX standardjs errors
Browse files Browse the repository at this point in the history
  • Loading branch information
serapath authored and yann300 committed Jul 17, 2017
1 parent 52b93b8 commit d44d839
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/universal-dapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,7 @@ UniversalDApp.prototype.getContractByName = function (contractName) {
}

UniversalDApp.prototype.getCreateInterface = function ($container, contract) {
function remove () {
self.$el.remove()
}
function remove () { self.$el.remove() }
var self = this
var createInterface = yo`<div class="create"></div>`
if (self.options.removable) {
Expand Down Expand Up @@ -347,6 +345,7 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
var createInterface = yo`<div class="createContract"></div>`

var appendFunctions = function (address, $el) {
function remove () { $instance.remove() }
if ($el) $el = $el.get(0)
function remove () { $instance.remove() }
var $instance = $(`<div class="instance ${cssInstance.instance}"/>`)
Expand Down

0 comments on commit d44d839

Please sign in to comment.