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
This commit is contained in:
Andrew Ozz 2014-01-17 00:12:21 +00:00
parent 5c1fe4033f
commit 32b9c649cf

View File

@ -481,7 +481,7 @@
data = { data = {
event: e, event: e,
what: 'dfw', what: 'dfw',
cb: fullscreen.off, cb: api.off,
condition: function(){ condition: function(){
if ( $('#TB_window').is(':visible') || $('.wp-dialog').is(':visible') ) if ( $('#TB_window').is(':visible') || $('.wp-dialog').is(':visible') )
return false; return false;
@ -490,7 +490,7 @@
}; };
if ( ! $(document).triggerHandler( 'wp_CloseOnEscape', [data] ) ) { if ( ! $(document).triggerHandler( 'wp_CloseOnEscape', [data] ) ) {
fullscreen.off(); api.off();
} }
} }