summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-04-29 13:21:33 +1000
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-04-29 13:21:33 +1000
commit7f614c73d96f3d982804c6a0473f9aa0236cc44b (patch)
tree51e400685ad638986c89537ad7ec179640e20fd7 /src
parentd017de19f18c154ae03a14c1d9ae76f3a9034c78 (diff)
downloadsvg.js-7f614c73d96f3d982804c6a0473f9aa0236cc44b.tar.gz
svg.js-7f614c73d96f3d982804c6a0473f9aa0236cc44b.zip
added tests for List.js
Diffstat (limited to 'src')
-rw-r--r--src/types/List.js4
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 => {