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

Fixing disconnect when iframe is missing temporarly #381

Closed

Conversation

jhicken
Copy link
Contributor

@jhicken jhicken commented Jul 12, 2016

Imagine you have an iFrame on the page its been initialized with iframe-resizer.

You then want to move it to a cache somewhere and put it back at a later point. Without this fix. Iframe-resizer will throw an error...

Here is kinda what happens.
You have already initialized the iframe. However when Iframe-resizer noticed the iframe was not in the DOM (usually on focus). It deleted it from the list of registered iframes. Once the DOM node is reinserted iframe-resizer cannot find it due to it being removed from the list of registered iframes.

The fix seems pretty simple. The tests pass with it. So... I don't think I'm missing any thing mission critial.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 95.612% when pulling 5d6a22d on jhicken:fix-missing-dom-on-readd into fd46591 on davidjbradshaw:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 95.204% when pulling 5d6a22d on jhicken:fix-missing-dom-on-readd into fd46591 on davidjbradshaw:master.

@jhicken
Copy link
Contributor Author

jhicken commented Jul 12, 2016

also im not sure what to fix for coveralls

@jhicken
Copy link
Contributor Author

jhicken commented Jul 26, 2016

also added a fix for destroying iframe resizer when the iframe is not in the dom

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 95.204% when pulling 61acf0c on jhicken:fix-missing-dom-on-readd into fd46591 on davidjbradshaw:master.

@davidjbradshaw
Copy link
Owner

Sorry for the delay, merged into v3.5.6.

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.

None yet

3 participants