mirror of
				https://git.tt-rss.org/fox/tt-rss.git
				synced 2025-11-04 05:41:29 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			549 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			549 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/* global define */
 | 
						|
define(["dojo/_base/declare", "dijit/Dialog"], function (declare) {
 | 
						|
	return declare("fox.SingleUseDialog", dijit.Dialog, {
 | 
						|
      create: function(params) {
 | 
						|
            const extant = dijit.byId(params.id);
 | 
						|
 | 
						|
            if (extant) {
 | 
						|
                  console.warn('SingleUseDialog: destroying existing widget:', params.id, '=', extant)
 | 
						|
                  extant.destroyRecursive();
 | 
						|
            }
 | 
						|
 | 
						|
            return this.inherited(arguments);
 | 
						|
      },
 | 
						|
      onHide: function() {
 | 
						|
         this.destroyRecursive();
 | 
						|
      }
 | 
						|
	});
 | 
						|
});
 |