[gnome-documents] documents: fix some uninitialized variable warnings
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] documents: fix some uninitialized variable warnings
- Date: Tue, 6 Aug 2013 14:50:39 +0000 (UTC)
commit 0ca71f37ea6fcac5e6430e7e303b922501768783
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Aug 6 15:00:54 2013 +0200
documents: fix some uninitialized variable warnings
src/documents.js | 4 ++--
src/selections.js | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index c8eabdc..b40c4d1 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -204,7 +204,7 @@ const CollectionIconWatcher = new Lang.Class({
},
destroy: function() {
- for (id in this._docConnections) {
+ for (let id in this._docConnections) {
let doc = this._docConnections[id];
doc.disconnect(id);
}
@@ -918,7 +918,7 @@ const DocumentManager = new Lang.Class({
},
_onChangesPending: function(monitor, changes) {
- for (idx in changes) {
+ for (let idx in changes) {
let changeEvent = changes[idx];
if (changeEvent.type == ChangeMonitor.ChangeEventType.CHANGED) {
diff --git a/src/selections.js b/src/selections.js
index 56f0ce7..3b49c5a 100644
--- a/src/selections.js
+++ b/src/selections.js
@@ -141,7 +141,7 @@ const FetchCollectionStateForSelectionJob = new Lang.Class({
let collections = Application.collectionManager.getItems();
// for all the registered collections...
- for (collIdx in collections) {
+ for (let collIdx in collections) {
let collection = collections[collIdx];
let found = false;
@@ -158,7 +158,7 @@ const FetchCollectionStateForSelectionJob = new Lang.Class({
hidden = true;
}
- for (itemIdx in this._collectionsForItems) {
+ for (let itemIdx in this._collectionsForItems) {
let item = Application.documentManager.getItemById(itemIdx);
let collectionsForItem = this._collectionsForItems[itemIdx];
@@ -371,7 +371,7 @@ const OrganizeCollectionModel = new Lang.Class({
},
_onFetchCollectionStateForSelection: function(collectionState) {
- for (idx in collectionState) {
+ for (let idx in collectionState) {
let item = Application.collectionManager.getItemById(idx);
if ((collectionState[item.id] & OrganizeCollectionState.HIDDEN) != 0)
@@ -799,7 +799,7 @@ const SelectionToolbar = new Lang.Class({
},
_setItemListeners: function(selection) {
- for (idx in this._itemListeners) {
+ for (let idx in this._itemListeners) {
let doc = this._itemListeners[idx];
doc.disconnect(idx);
delete this._itemListeners[idx];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]