mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	eslint: Fix unicorn/no-this-assignment.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							a679ee12f3
						
					
				
				
					commit
					8d44cd78ec
				
			@@ -117,11 +117,10 @@ function test_helper() {
 | 
			
		||||
 | 
			
		||||
function stub_message_list() {
 | 
			
		||||
    message_list.MessageList = function (opts) {
 | 
			
		||||
        const list = this;
 | 
			
		||||
        this.data = opts.data;
 | 
			
		||||
        this.view = {
 | 
			
		||||
            set_message_offset(offset) {
 | 
			
		||||
                list.view.offset = offset;
 | 
			
		||||
                this.offset = offset;
 | 
			
		||||
            },
 | 
			
		||||
        };
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -528,8 +528,7 @@ exports.get_sorted_filtered_items = function (query) {
 | 
			
		||||
        several years ago.)
 | 
			
		||||
    */
 | 
			
		||||
 | 
			
		||||
    const hacky_this = this;
 | 
			
		||||
    const fetcher = exports.get_candidates.bind(hacky_this);
 | 
			
		||||
    const fetcher = exports.get_candidates.bind(this);
 | 
			
		||||
    const big_results = fetcher(query);
 | 
			
		||||
 | 
			
		||||
    if (!big_results) {
 | 
			
		||||
@@ -538,10 +537,10 @@ exports.get_sorted_filtered_items = function (query) {
 | 
			
		||||
 | 
			
		||||
    // We are still hacking info onto the "this" from
 | 
			
		||||
    // bootstrap.  Yuck.
 | 
			
		||||
    const completing = hacky_this.completing;
 | 
			
		||||
    const token = hacky_this.token;
 | 
			
		||||
    const completing = this.completing;
 | 
			
		||||
    const token = this.token;
 | 
			
		||||
 | 
			
		||||
    const opts = exports.get_stream_topic_data(hacky_this);
 | 
			
		||||
    const opts = exports.get_stream_topic_data(this);
 | 
			
		||||
 | 
			
		||||
    if (completing === "mention" || completing === "silent_mention") {
 | 
			
		||||
        return exports.filter_and_sort_mentions(big_results.is_silent, token, opts);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user