Skip to content

Commit

Permalink
#246 Fix issue with : in messages
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjbradshaw committed Aug 28, 2015
1 parent c10ac6e commit 446c9da
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ The parentIFrame methods object in the iFrame is now always available and the `e

## Version History

* v3.2.0 Added readyCallback to iFrame. Host page log messages include ref to iFrame the are operating on. IFrameResizer object on iFrame is now created during setup, rather than waiting for init message to be returned from iFrame. [#245](https://github.com/davidjbradshaw/iframe-resizer/issues/245) Fix issue with iFrame not correctly resizing when multiple images are injected into the page [[mdgbayly](https://github.com/mdgbayly)].
* v3.2.0 Added readyCallback to iFrame. Host page log messages include ref to iFrame the are operating on. IFrameResizer object on iFrame is now created during setup, rather than waiting for init message to be returned from iFrame. [#245](https://github.com/davidjbradshaw/iframe-resizer/issues/245) Fix issue with iFrame not correctly resizing when multiple images are injected into the page [[mdgbayly](https://github.com/mdgbayly)]. [#246](https://github.com/davidjbradshaw/iframe-resizer/issues/246) Fix issue with including ':' in messages passed to iFrames.
* v3.1.0 [#101](https://github.com/davidjbradshaw/iframe-resizer/issues/101) Support async loading of iFrame script. [#239](https://github.com/davidjbradshaw/iframe-resizer/issues/239) Throttle size checking to once per screen refresh (16ms). Added support for hidden iFrames in FireFox. Improved handling of parent page events. [#236](https://github.com/davidjbradshaw/iframe-resizer/issues/236) Cope with iFrames that don't have a *src* value. [#242](https://github.com/davidjbradshaw/iframe-resizer/issues/242) Fix issue where iFrame is removed and then put back with same ID [[Alban Mouton](https://github.com/albanm)].
* v3.0.0 Added *taggedElement* size calculation method. [#199](https://github.com/davidjbradshaw/iframe-resizer/issues/199) Added in page options to iFrame. [#70](https://github.com/davidjbradshaw/iframe-resizer/issues/70) Added width calculation method options. Added methods to bound iFrames to comunicate from parent to iFrame. Ignore calls to setup an already bound iFrame. Improved event handling. Refactored MutationObserver functions. Moved IE8 polyfil from docs to own JS file and added *Funtion.prototype.bind()*. Added detection for tab focus. Fixed bug with nested inPageLinks. Public methods in iFrame now always enabled and option removed. Renamed enableInPageLinks to inPageLinks. Added double iFrame example.
* v2.8.10 Fixed bug with resizeFrom option not having default value in iFrame, if called from old version in parent page.
Expand Down
2 changes: 1 addition & 1 deletion js/iframeResizer.contentWindow.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/iframeResizer.contentWindow.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/iframeResizer.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/iframeResizer.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/iframeResizer.contentWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@
}

function getData(){
return event.data.split(':')[1];
return event.data.substr(event.data.indexOf(':')+1);
}

function isMiddleTier(){
Expand Down Expand Up @@ -887,7 +887,7 @@
break;
default:
if (!isMiddleTier() && !isInitMsg()){
warn('Unexpected message ('+event.data+')');
//warn('Unexpected message ('+event.data+')');
}
}
}
Expand Down

0 comments on commit 446c9da

Please sign in to comment.