diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-04-29 13:21:33 +1000 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-04-29 13:21:33 +1000 |
commit | 7f614c73d96f3d982804c6a0473f9aa0236cc44b (patch) | |
tree | 51e400685ad638986c89537ad7ec179640e20fd7 /src | |
parent | d017de19f18c154ae03a14c1d9ae76f3a9034c78 (diff) | |
download | svg.js-7f614c73d96f3d982804c6a0473f9aa0236cc44b.tar.gz svg.js-7f614c73d96f3d982804c6a0473f9aa0236cc44b.zip |
added tests for List.js
Diffstat (limited to 'src')
-rw-r--r-- | src/types/List.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types/List.js b/src/types/List.js index 27f1d5d..b68e362 100644 --- a/src/types/List.js +++ b/src/types/List.js @@ -13,8 +13,8 @@ export default List extend(List, { each (fnOrMethodName, ...args) { if (typeof fnOrMethodName === 'function') { - return this.map((el) => { - return fnOrMethodName.call(el, el) + return this.map((el, i, arr) => { + return fnOrMethodName.call(el, el, i, arr) }) } else { return this.map(el => { |