File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/ecma-debugger/objectinspection.6.0 Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ cls.EcmascriptDebugger["6.0"].InspectionBaseView = function()
1212
1313 this . createView = function ( container )
1414 {
15+ this . _is_destroyed = false ;
1516 var data_model = this . _data || window . inspections && window . inspections [ this . _cur_data ] ;
1617 if ( data_model )
1718 {
@@ -38,6 +39,9 @@ cls.EcmascriptDebugger["6.0"].InspectionBaseView = function()
3839
3940 this . _create_view = function ( container , data_model )
4041 {
42+ if ( this . _is_destroyed )
43+ return ;
44+
4145 var tmpl = window . templates . inspected_js_object ( data_model , false ,
4246 null , this . _searchterm ) ;
4347 container . clearAndRender ( tmpl ) ;
@@ -54,6 +58,11 @@ cls.EcmascriptDebugger["6.0"].InspectionBaseView = function()
5458
5559 this . _tmpl_no_content = function ( ) { return [ ] } ;
5660
61+ this . ondestroy = function ( )
62+ {
63+ this . _is_destroyed = true ;
64+ }
65+
5766}
5867
5968cls . EcmascriptDebugger [ "6.0" ] . InspectionBaseView . prototype = ViewBase ;
You can’t perform that action at this time.
0 commit comments