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

"Strict mode does not allow function declarations in a lexically nested statement." #41

Open
akisma opened this issue Apr 8, 2016 · 2 comments

Comments

@akisma
Copy link

akisma commented Apr 8, 2016

This happens in safari (and possibly other browsers, haven't yet verified) with regard to the "deep_link" function. Blocks loading of widget.

https://www.dropbox.com/s/l376b85xh43apfe/Screenshot%202016-04-08%2019.39.25.png?dl=0

https://github.com/vdw/Tabslet/blob/master/jquery.tabslet.js#L176

According to spec, using strict mode, functions cannot be declared within any logic blocks, and this is currently being declared within an if block.

@akisma
Copy link
Author

akisma commented Apr 8, 2016

Commenting out strict mode works just fine, but I didn't want to submit that as a fix because that sucks.

@ghost
Copy link

ghost commented Apr 25, 2016

I have the same issue in Safari desktop/mobile and have temporarily commented it out to fix the issue.

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