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(); } }