diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-01-06 15:23:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-01-06 15:23:32 +0000 |
commit | c8fd75886e75229a00981c3206caca8a5b2b287a (patch) | |
tree | 0724eb03b25f9e2f5afa89d6c217174f2b3aabd9 /modules/overlay/overlay-child.js | |
parent | 286d9c6a5e74f5be10e192313e532e7ae78bfc31 (diff) | |
download | brdo-c8fd75886e75229a00981c3206caca8a5b2b287a.tar.gz brdo-c8fd75886e75229a00981c3206caca8a5b2b287a.tar.bz2 |
- Patch #669796 by casey: remove unnecessary code.
Diffstat (limited to 'modules/overlay/overlay-child.js')
-rw-r--r-- | modules/overlay/overlay-child.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/modules/overlay/overlay-child.js b/modules/overlay/overlay-child.js index 93ae1f34a..1445b32b7 100644 --- a/modules/overlay/overlay-child.js +++ b/modules/overlay/overlay-child.js @@ -54,14 +54,6 @@ Drupal.behaviors.overlayChild = { // Ok, now we can tell the parent window we're ready. parent.Drupal.overlay.bindChild(window); - // Install onBeforeUnload callback, if module is present. - if ($.isObject(Drupal.onBeforeUnload) && !Drupal.onBeforeUnload.callbackExists('overlayChild')) { - Drupal.onBeforeUnload.addCallback('overlayChild', function () { - // Tell the parent window we're unloading. - parent.Drupal.overlay.unbindChild(window); - }); - } - // Attach child related behaviors to the iframe document. self.attachBehaviors(context, settings); } |