mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	common.js: Migrate common.js module to use IIFE module style.
				
					
				
			This module was exposing its functions as globals. This PR fixes it use the IIFE module style that we use in our other modules.
This commit is contained in:
		@@ -19,10 +19,10 @@ exports.message = function (response, status_box, cls, type) {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (type === 'subscriptions-status') {
 | 
			
		||||
        status_box.removeClass(status_classes).addClass(cls).children('#response')
 | 
			
		||||
        status_box.removeClass(common.status_classes).addClass(cls).children('#response')
 | 
			
		||||
              .text(response).stop(true).fadeTo(0, 1);
 | 
			
		||||
    } else {
 | 
			
		||||
        status_box.removeClass(status_classes).addClass(cls)
 | 
			
		||||
        status_box.removeClass(common.status_classes).addClass(cls)
 | 
			
		||||
              .text(response).stop(true).fadeTo(0, 1);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user