[gnome-documents] documents: fix double declaration of DocumentManager
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] documents: fix double declaration of DocumentManager
- Date: Tue, 5 Jun 2012 01:34:53 +0000 (UTC)
commit b5c7f549238bd113c0a09109ada91c9a707dc8c7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Jun 4 21:12:10 2012 -0400
documents: fix double declaration of DocumentManager
Fix startup
src/documents.js | 17 +++++------------
1 files changed, 5 insertions(+), 12 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index e0c5629..62dc1bd 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -796,18 +796,15 @@ const GoogleDocument = new Lang.Class({
}
});
-function SkydriveDocument(cursor) {
- this._init(cursor);
-}
-
-SkydriveDocument.prototype = {
- __proto__: DocCommon.prototype,
+const SkydriveDocument = new Lang.Class({
+ Name: 'SkydriveDocument',
+ Extends: DocCommon,
_init: function(cursor) {
this._triedThumbnailing = true;
this._failedThumbnailing = true;
- DocCommon.prototype._init.call(this, cursor);
+ this.parent(cursor);
// overridden
this.defaultAppName = _("Skydrive");
@@ -894,11 +891,7 @@ SkydriveDocument.prototype = {
canTrash: function() {
return false;
}
-}
-
-function DocumentManager() {
- this._init();
-}
+});
const DocumentManager = new Lang.Class({
Name: 'DocumentManager',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]