Skip to content

Commit

Permalink
fix(index.js): add isRegistered check
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Apr 1, 2017
1 parent 4c580fd commit 721553e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@

module.exports = function dushMethods () {
return function dushMethods (app) {
/* istanbul ignore next */
if (app.isRegistered && app.isRegistered('dush-methods')) {
return
}

/**
* > Add non-enumerable `prop` with a `value`.
* It also emits a `define` event.
Expand Down

0 comments on commit 721553e

Please sign in to comment.