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

Don't break when included more than once on host page #202

Conversation

elektronik2k5
Copy link
Contributor

Fixes #190
I added two tests, both referencing ../src/iframeResizer.js (unlike the rest of the tests where its ../js/iframeResizer.js) because otherwise one of the (existing) tests failed.
I also had some trouble minifying - so I skipped that too.

@davidjbradshaw
Copy link
Owner

Thanks for this, looks good. Just wondering if we should throw a warning message if the script is loaded twice.

@elektronik2k5
Copy link
Contributor Author

@davidjbradshaw, good idea - as long as it can be suppressed via configuration too. My use case is just that: I have no idea how many times the host script can be included on a page - and it must just work.

@davidjbradshaw davidjbradshaw merged commit 5d577b0 into davidjbradshaw:master May 19, 2015
@davidjbradshaw
Copy link
Owner

Released v2.8.7. Thanks.

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

Successfully merging this pull request may close these issues.

settings[iframeID] is undefined
2 participants