Tabslet icon indicating copy to clipboard operation
Tabslet copied to clipboard

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

Open akisma opened this issue 8 years ago • 2 comments

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 avatar Apr 08 '16 23:04 akisma

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

akisma avatar Apr 08 '16 23:04 akisma

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

ghost avatar Apr 25 '16 19:04 ghost