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 } 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)