Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dublicate declaration #15

Open
MikalJ opened this issue Jul 28, 2014 · 0 comments
Open

Dublicate declaration #15

MikalJ opened this issue Jul 28, 2014 · 0 comments

Comments

@MikalJ
Copy link

MikalJ commented Jul 28, 2014

Several place in the source, something similiar to this is used at the start of a function

function lambda(tmpl, t) {
    var f, fn = [], t = t || tag,
    ...
}

This is invalid JS as the variable 't' is declared twice. First as an argument in the function signature and then as a local variable inside the function body. The correct approach would be something like this:

function lambda(tmpl, t) {
    t = t || tag;
    var f, fn = [],
    ...
}

As far as I can tell this is repeated on line 42, 96 and 113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant