     func deleteBarButtonPressed() {
         var indexPaths: [NSIndexPath] = []
         
-        for key in self.editingModeSelection.keys {
-            if self.editingModeSelection[key] == true {
-                indexPaths.append(self.scrollView.indexPathForCell(key + T2GViewTags.cellConstant))
-            }
-        }
-        
-        self.removeRowsAtIndexPaths(indexPaths.sort({$0.section == $1.section ? $0.row < $1.row : $0.section < $1.section}), notifyDelegate: true)
-        self.editingModeSelection = [Int : Bool]()
+        for key in editingModeSelection.keys {
+            if editingModeSelection[key] == true {
+                indexPaths.append(scrollView.indexPathForCell(key + T2GViewTags.cellConstant))
+            }
+        }
+        
+        removeRowsAtIndexPaths(indexPaths.sort({$0.section == $1.section ? $0.row < $1.row : $0.section < $1.section}), notifyDelegate: true)
+        editingModeSelection = [Int : Bool]()
     }
     
     func toggleSelectionPanel() {

     :param: indexPath NSIndexPath of the given cell.
     */
    public func closeCell(indexPath: NSIndexPath) {
        let index = self.scrollView.indexForIndexPath(indexPath)
        
        if let cell = self.scrollView.viewWithTag(index + T2GViewTags.cellConstant) as? T2GCell {
            cell.closeCell()
        }
    }

            return
        }
        for indexPath in indexPaths {
            indices.append(scrollView.indexForIndexPath(indexPath))
        }
        
        
        for idx in indices {
            if let view = scrollView!.viewWithTag(idx + T2GViewTags.cellConstant) as? T2GCell {
                view.removeFromSuperview()
            }
        }
