From a67857a7b639a28a8f1f2fe8a05070fed2abf2d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sch=C3=A4r?= Date: Sat, 13 Jun 2015 22:19:59 +0200 Subject: [PATCH] simplify splice rem and ret are the same, see also #1820 --- src/standard/notify-path.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/standard/notify-path.html b/src/standard/notify-path.html index 7a23fcfe13..fd8fbc81dd 100644 --- a/src/standard/notify-path.html +++ b/src/standard/notify-path.html @@ -412,9 +412,8 @@ splice: function(path, start, deleteCount) { var array = this.get(path); var args = Array.prototype.slice.call(arguments, 1); - var rem = array.slice(start, start + deleteCount); var ret = array.splice.apply(array, args); - this._notifySplice(array, path, start, args.length - 2, rem); + this._notifySplice(array, path, start, args.length - 2, ret); return ret; },