@@ -237,7 +237,8 @@ var ProfilerView = function(id, name, container_class, html, default_handler)
237237
238238 this . _timeline_width = width ;
239239 this . _zoomer . set_zoomer_element ( this . _zoomer_ele ) ;
240- this . _zoomer . set_current_area ( ) ;
240+ if ( this . _set_zoomer )
241+ this . _zoomer . set_current_area ( ) ;
241242 } ;
242243
243244 this . createView = function ( container )
@@ -508,6 +509,7 @@ var ProfilerView = function(id, name, container_class, html, default_handler)
508509
509510 this . _x0 = 0 ;
510511 this . _x1 = interval . end ;
512+ this . _set_zoomer = false ;
511513 this . _timeline_ele . clearAndRender ( this . _templates . event_list_all ( event_list , interval , this . _event_id , width ) ) ;
512514 this . _timeline_times_ele . clearAndRender ( this . _templates . timeline_markers ( 0 , interval . end , width ) ) ;
513515 this . _legend_ele . clearAndRender ( this . _templates . legend ( aggregated_event_list ) ) ;
@@ -532,6 +534,7 @@ var ProfilerView = function(id, name, container_class, html, default_handler)
532534
533535 this . _x0 = x0 ;
534536 this . _x1 = x1 ;
537+ this . _set_zoomer = true ;
535538 this . _zoomer . fast_throttle = event_list . length < 500 ;
536539 this . _timeline_ele . clearAndRender ( this . _templates . event_list_all ( event_list , interval , this . _event_id , width , x0 , x1 ) ) ;
537540 this . _timeline_times_ele . clearAndRender ( this . _templates . timeline_markers ( x0 , x1 , width ) ) ;
@@ -548,6 +551,7 @@ var ProfilerView = function(id, name, container_class, html, default_handler)
548551
549552 this . _get_timeline_duration = function ( )
550553 {
554+ // TODO: make sure this exists
551555 return this . _timeline_list . interval . end ;
552556 } ;
553557
@@ -569,6 +573,7 @@ var ProfilerView = function(id, name, container_class, html, default_handler)
569573
570574 this . _x0 = 0 ;
571575 this . _x1 = 0 ;
576+ this . _set_zoomer = true ;
572577 this . _min_event_time = 0 ;
573578
574579 this . _legend_ele = null ;
0 commit comments