Changeset - 68638dc98dc8
[Not reviewed]
default
0 1 0
Thomas De Schampheleire - 10 years ago 2015-06-26 22:12:13
thomas.de.schampheleire@gmail.com
autocomplete: remove leftover 'cache' in PullRequestAutocomplete

The cache array is no longer used, only written to, and can thus be removed.
1 file changed with 0 insertions and 4 deletions:
0 comments (0 inline, 0 general)
kallithea/public/js/base.js
Show inline comments
 
@@ -1468,9 +1468,6 @@ var PullRequestAutoComplete = function (
 

	
 
    reviewerAC.formatResult = autocompleteFormatter;
 

	
 
    //members cache to catch duplicates
 
    reviewerAC.dataSource.cache = [];
 

	
 
    // Handler for selection of an entry
 
    if(reviewerAC.itemSelectEvent){
 
        reviewerAC.itemSelectEvent.subscribe(function (sType, aArgs) {
 
@@ -1480,7 +1477,6 @@ var PullRequestAutoComplete = function (
 
    
 
            addReviewMember(oData.id, oData.fname, oData.lname, oData.nname,
 
                            oData.gravatar_lnk, oData.gravatar_size);
 
            myAC.dataSource.cache.push(oData.id);
 
            $('#user').val('');
 
        });
 
    }
0 comments (0 inline, 0 general)