[gnome-sound-recorder/gnome-3-12] listview.js: Don't reset the end index



commit 1a42363c8802707205b91aaf735a7da2be4b393a
Author: Meg Ford <megford gnome org>
Date:   Fri May 16 20:56:58 2014 -0500

    listview.js: Don't reset the end index
    
    Array.splice doesn't remove the array member.
    It sets the member to at the index to null.

 src/listview.js |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/listview.js b/src/listview.js
index 5596013..c4d62ab 100644
--- a/src/listview.js
+++ b/src/listview.js
@@ -304,7 +304,6 @@ const Listview = new Lang.Class({
             if (allFilesInfo[this.idx].mediaType == null) {
                 // Remove the file from the array if we don't recognize it    
                 allFilesInfo.splice(this.idx, 1);
-               this.endIdx = this.endIdx - 1;
             }       
         }        
     },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]