[gnome-documents/gnome-3-10] documents: Warn that DocCommon implementations must override canTrash



commit c1ae5cf87eab1bbc6b82f2495464edb993c55898
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Feb 25 12:33:27 2014 +0100

    documents: Warn that DocCommon implementations must override canTrash
    
    https://bugzilla.gnome.org/show_bug.cgi?id=725128

 src/documents.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 17d2c70..f444674 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -359,6 +359,10 @@ const DocCommon = new Lang.Class({
         log('Error: DocCommon implementations must override canShare');
     },
 
+    canTrash: function(callback) {
+        log('Error: DocCommon implementations must override canTrash');
+    },
+
     createThumbnail: function(callback) {
         log('Error: DocCommon implementations must override createThumbnail');
     },


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