Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit ff8b833

Browse files
Merge pull request #199 from priecint/#124_safari-param-shadowing
Fixes #124 (Cannot declare a parameter named 'mask' as it shadows the name of a strict mode function)
2 parents 934e869 + c0ac0f9 commit ff8b833

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/api/id.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict'
22

33
module.exports = send => {
4-
return function id (id, cb) {
5-
if (typeof id === 'function') {
6-
cb = id
7-
id = null
4+
return function id (idParam, cb) {
5+
if (typeof idParam === 'function') {
6+
cb = idParam
7+
idParam = null
88
}
9-
return send('id', id, null, null, cb)
9+
return send('id', idParam, null, null, cb)
1010
}
1111
}

0 commit comments

Comments
 (0)