From 32b9c649cf5a25c94fc3822e179cdfbc22018bf5 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 17 Jan 2014 00:12:21 +0000 Subject: [PATCH] DFW: fix reference to off() when pressing Esc. Props kovshenin, see #24067. git-svn-id: https://develop.svn.wordpress.org/trunk@26966 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/wp-fullscreen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/js/wp-fullscreen.js b/src/wp-admin/js/wp-fullscreen.js index f94291ab70..91c2c5ea4a 100644 --- a/src/wp-admin/js/wp-fullscreen.js +++ b/src/wp-admin/js/wp-fullscreen.js @@ -481,7 +481,7 @@ data = { event: e, what: 'dfw', - cb: fullscreen.off, + cb: api.off, condition: function(){ if ( $('#TB_window').is(':visible') || $('.wp-dialog').is(':visible') ) return false; @@ -490,7 +490,7 @@ }; if ( ! $(document).triggerHandler( 'wp_CloseOnEscape', [data] ) ) { - fullscreen.off(); + api.off(); } }