[gnome-documents] selections: Add a comment



commit ae092260842f9dc2b9c25d9af9e03799c8546a69
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Aug 12 10:05:47 2014 +0200

    selections: Add a comment

 src/selections.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/selections.js b/src/selections.js
index 249f918..747cc50 100644
--- a/src/selections.js
+++ b/src/selections.js
@@ -906,6 +906,8 @@ const SelectionToolbar = new Lang.Class({
                 docs.push(doc);
             }));
 
+        // Removing an item from DocumentManager changes the selection, so
+        // we can't use the selection while removing items.
         docs.forEach(Lang.bind(this,
             function(doc) {
                 Application.documentManager.removeItem(doc);


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