Browse Source

Don't same variable name as variable function

When using this library in Safari (OsX or iPad) we may encounter the error:

'duplicate parameter in function with default parameter values'

This is related to the use of a variable name that is the same as the function and similar fix were applied in other libraries like:
https://github.com/jupyterlab/jupyterlab/pull/7993/files
pull/1258/head
Luc Patiny 2 years ago
parent
commit
9a35cca137
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/elements/A.js

+ 2
- 2
src/elements/A.js View File

@@ -10,8 +10,8 @@ export default class A extends Container {
}

// Link target attribute
target (target) {
return this.attr('target', target)
target (targetValue) {
return this.attr('target', targetValue)
}

// Link url

Loading…
Cancel
Save