@@ -348,7 +348,7 @@ define([
348
348
this . _needs_height_reset = false ;
349
349
}
350
350
351
- this . element . trigger ( 'resizeOutput' ) ;
351
+ this . element . trigger ( 'resizeOutput' , { output_area : this } ) ;
352
352
} ;
353
353
354
354
OutputArea . prototype . create_output_area = function ( ) {
@@ -451,7 +451,7 @@ define([
451
451
}
452
452
453
453
// Notify others of changes.
454
- this . element . trigger ( 'changed' ) ;
454
+ this . element . trigger ( 'changed' , { output_area : this } ) ;
455
455
} ;
456
456
457
457
@@ -942,7 +942,7 @@ define([
942
942
} ;
943
943
944
944
945
- OutputArea . prototype . clear_output = function ( wait , ignore_que ) {
945
+ OutputArea . prototype . clear_output = function ( wait , ignore_clear_queue ) {
946
946
if ( wait ) {
947
947
948
948
// If a clear is queued, clear before adding another to the queue.
@@ -955,7 +955,7 @@ define([
955
955
956
956
// Fix the output div's height if the clear_output is waiting for
957
957
// new output (it is being used in an animation).
958
- if ( ! ignore_que && this . clear_queued ) {
958
+ if ( ! ignore_clear_queue && this . clear_queued ) {
959
959
var height = this . element . height ( ) ;
960
960
this . element . height ( height ) ;
961
961
this . clear_queued = false ;
@@ -965,11 +965,12 @@ define([
965
965
// Remove load event handlers from img tags because we don't want
966
966
// them to fire if the image is never added to the page.
967
967
this . element . find ( 'img' ) . off ( 'load' ) ;
968
+ this . element . trigger ( 'clearing' , { output_area : this } ) ;
968
969
this . element . html ( "" ) ;
969
970
970
971
// Notify others of changes.
971
- this . element . trigger ( 'changed' ) ;
972
- this . element . trigger ( 'cleared' ) ;
972
+ this . element . trigger ( 'changed' , { output_area : this } ) ;
973
+ this . element . trigger ( 'cleared' , { output_area : this } ) ;
973
974
974
975
this . outputs = [ ] ;
975
976
this . _display_id_targets = { } ;
0 commit comments