[gnome-documents/wip/rishi/onedrive: 13/13] documents: Assert downloadImpl for local
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/rishi/onedrive: 13/13] documents: Assert downloadImpl for local
- Date: Fri, 7 Apr 2017 16:10:57 +0000 (UTC)
commit cb8a57eeefd76d44d1844fc9c63f8b31856d6685
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Apr 7 18:08:48 2017 +0200
documents: Assert downloadImpl for local
src/documents.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 00fd572..f29f1d2 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -875,6 +875,10 @@ const LocalDocument = new Lang.Class({
this.typeDescription = description;
},
+ downloadImpl: function(localFile, cancellable, callback) {
+ throw(new Error('LocalDocuments need not be downloaded'));
+ },
+
load: function(passwd, cancellable, callback) {
this.loadLocal(passwd, cancellable, callback);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]