summaryrefslogtreecommitdiff
path: root/modules/overlay/overlay-child.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/overlay/overlay-child.js')
-rw-r--r--modules/overlay/overlay-child.js8
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);
}