[gnome-documents/gnome-3-20] documents: Warn that DocCommon implementations must override load



commit 2124f41d3e39c0ee44c91d8b855eb509bd5a701b
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Mar 24 19:02:31 2017 +0100

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

 src/documents.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 80ac38b..9eec7bd 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -366,6 +366,10 @@ const DocCommon = new Lang.Class({
         }
     },
 
+    load: function() {
+        log('Error: DocCommon implementations must override load');
+    },
+
     canEdit: function() {
         log('Error: DocCommon implementations must override canEdit');
     },


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