diff --git a/lib/mixins/property-effects.js b/lib/mixins/property-effects.js index 030c7951c5..d78f42f657 100644 --- a/lib/mixins/property-effects.js +++ b/lib/mixins/property-effects.js @@ -964,17 +964,13 @@ function parseArg(rawArg) { return a; } -function getArgValue(data, props, structured, path) { - if (structured) { - let value = get(data, path); - // when data is not stored e.g. `splices`, get the changed value - if (value === undefined) { - value = props[path]; - } - return value; - } else { - return data[path]; +function getArgValue(data, props, path) { + let value = get(data, path); + // when data is not stored e.g. `splices`, get the changed value + if (value === undefined) { + value = props[path]; } + return value; } // data api @@ -992,8 +988,7 @@ function getArgValue(data, props, structured, path) { * @private */ function notifySplices(inst, array, path, splices) { - let splicesPath = path + '.splices'; - inst.notifyPath(splicesPath, { indexSplices: splices }); + inst.notifyPath(path + '.splices', { indexSplices: splices }); inst.notifyPath(path + '.length', array.length); } @@ -2155,14 +2150,16 @@ export const PropertyEffects = dedupingMixin(superClass => { for (let i=0, l=args.length; i