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

Minifying and bundling causing errors #176

Open
piercemcgeough opened this issue Jul 25, 2017 · 0 comments
Open

Minifying and bundling causing errors #176

piercemcgeough opened this issue Jul 25, 2017 · 0 comments

Comments

@piercemcgeough
Copy link

When using grunt uglify (along with many other files) the prettyphoto causes an error Uncaught SyntaxError: Delete of an unqualified identifier in strict mode.

This in turn gives reference errors app.js?v=84ff55a…:61 Uncaught ReferenceError: $ is not defined.

I read on SO that an object cannot be directly deleted.

Delete is used on line 486 delete settings;.

I changed this to settings = undefined; but then end up getting the following error. Uncaught ReferenceError: doresize is not defined at r.fn.init.$.fn.prettyPhoto

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