Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Commit

Permalink
Fixed issue with __hooks being overwritten when reusing service (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattchewone authored and daffl committed Apr 28, 2017
1 parent 1f55195 commit d2e59ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ function isPromise (result) {
}

function hookMixin (service) {
if (typeof service.hooks === 'function') {
return;
}

const app = this;
const methods = app.methods;
const old = {
Expand Down

0 comments on commit d2e59ee

Please sign in to comment.