From effec9303fcfb9434952aa5709db5fbac379ef8a Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Mon, 21 May 2018 20:35:35 +0200 Subject: [PATCH] fix: use apply --- src/smart-apollo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smart-apollo.js b/src/smart-apollo.js index a019930..aa46905 100644 --- a/src/smart-apollo.js +++ b/src/smart-apollo.js @@ -143,7 +143,7 @@ export default class SmartApollo { for (const handler of handlers) { if (handler) { catched = true - let result = handler.call(this.vm, ...args) + let result = handler.apply(this.vm, args) if (typeof result !== 'undefined' && !result) { break }