Index: js/parent.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/modalframe/js/Attic/parent.js,v
retrieving revision 1.1.2.22
diff -r1.1.2.22 parent.js
301a302,307
>   // When the user closes the modal before the iframe has been loaded $element will be undefined.
>   // Break this function to avoid errors.
>   if (!self.iframe.$element) {
>     return;
>   };
> 
