[gnome-documents] documents: Get rid of redundant string operations
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] documents: Get rid of redundant string operations
- Date: Sun, 11 Aug 2013 06:12:36 +0000 (UTC)
commit 557b08b10fa3516cc954aaac20a30525f928056f
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Aug 9 17:29:26 2013 +0200
documents: Get rid of redundant string operations
https://bugzilla.gnome.org/show_bug.cgi?id=705725
src/documents.js | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 6e77bf7..49117d8 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -796,12 +796,12 @@ const GoogleDocument = new Lang.Class({
updateTypeDescription: function() {
let description;
- if (this.rdfType.indexOf('nfo#Spreadsheet') != -1)
+ if (this.collection)
+ description = _("Collection");
+ else if (this.rdfType.indexOf('nfo#Spreadsheet') != -1)
description = _("Spreadsheet");
else if (this.rdfType.indexOf('nfo#Presentation') != -1)
description = _("Presentation");
- else if (this.rdfType.indexOf('nfo#DataContainer') != -1)
- description = _("Collection");
else
description = _("Document");
@@ -894,12 +894,12 @@ const SkydriveDocument = new Lang.Class({
updateTypeDescription: function() {
let description;
- if (this.rdfType.indexOf('nfo#Spreadsheet') != -1)
+ if (this.collection)
+ description = _("Collection");
+ else if (this.rdfType.indexOf('nfo#Spreadsheet') != -1)
description = _("Spreadsheet");
else if (this.rdfType.indexOf('nfo#Presentation') != -1)
description = _("Presentation");
- else if (this.rdfType.indexOf('nfo#DataContainer') != -1)
- description = _("Collection");
else
description = _("Document");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]