From 267b6fc97b615103526ba8f744b04f15aa1769cc Mon Sep 17 00:00:00 2001 From: Juraj Pikora Date: Wed, 23 May 2018 15:24:03 +0200 Subject: [PATCH 1/2] Fix: reactiveSetter deep flag propagation (#289) --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index ae8410e..ed91109 100644 --- a/src/index.js +++ b/src/index.js @@ -79,10 +79,10 @@ const launch = function launch () { } } -function defineReactiveSetter ($apollo, key, value) { +function defineReactiveSetter ($apollo, key, value, deep) { if (typeof value !== 'undefined') { if (typeof value === 'function') { - $apollo.defineReactiveSetter(key, value) + $apollo.defineReactiveSetter(key, value, deep) } else { $apollo[key] = value } From 4e5b8e17e46648b9030b05fa4ea60f2a988f1237 Mon Sep 17 00:00:00 2001 From: Juraj Pikora Date: Wed, 23 May 2018 15:24:40 +0200 Subject: [PATCH 2/2] Fix: factory function for throttle/debounce (#288) --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 50e0159..2b50490 100644 --- a/src/utils.js +++ b/src/utils.js @@ -4,7 +4,7 @@ import oDebounce from 'throttle-debounce/debounce' export const Globals = {} function factory (action) { - return (cb, time) => action(time.cb) + return (cb, time) => action(time, cb) } export const throttle = factory(oThrottle)