summaryrefslogtreecommitdiffstats
path: root/services/sync/tps/extensions/tps/resource/tps.jsm
diff options
context:
space:
mode:
Diffstat (limited to 'services/sync/tps/extensions/tps/resource/tps.jsm')
-rw-r--r--services/sync/tps/extensions/tps/resource/tps.jsm24
1 files changed, 12 insertions, 12 deletions
diff --git a/services/sync/tps/extensions/tps/resource/tps.jsm b/services/sync/tps/extensions/tps/resource/tps.jsm
index d3a8b0b7d..db191def7 100644
--- a/services/sync/tps/extensions/tps/resource/tps.jsm
+++ b/services/sync/tps/extensions/tps/resource/tps.jsm
@@ -7,11 +7,11 @@
* listed symbols will exposed on import, and only when and where imported.
*/
-let EXPORTED_SYMBOLS = ["ACTIONS", "TPS"];
+var EXPORTED_SYMBOLS = ["ACTIONS", "TPS"];
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
-let module = this;
+var module = this;
// Global modules
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
@@ -89,7 +89,7 @@ const OBSERVER_TOPICS = ["fxaccounts:onlogin",
"weave:service:sync:start"
];
-let TPS = {
+var TPS = {
_currentAction: -1,
_currentPhase: -1,
_enabledEngines: null,
@@ -285,7 +285,7 @@ let TPS = {
HandleTabs: function (tabs, action) {
this._tabsAdded = tabs.length;
this._tabsFinished = 0;
- for each (let tab in tabs) {
+ for (let tab of tabs) {
Logger.logInfo("executing action " + action.toUpperCase() +
" on tab " + JSON.stringify(tab));
switch(action) {
@@ -330,7 +330,7 @@ let TPS = {
},
HandlePrefs: function (prefs, action) {
- for each (pref in prefs) {
+ for (let pref of prefs) {
Logger.logInfo("executing action " + action.toUpperCase() +
" on pref " + JSON.stringify(pref));
let preference = new Preference(pref);
@@ -349,7 +349,7 @@ let TPS = {
},
HandleForms: function (data, action) {
- for each (datum in data) {
+ for (let datum of data) {
Logger.logInfo("executing action " + action.toUpperCase() +
" on form entry " + JSON.stringify(datum));
let formdata = new FormData(datum, this._usSinceEpoch);
@@ -377,7 +377,7 @@ let TPS = {
HandleHistory: function (entries, action) {
try {
- for each (entry in entries) {
+ for (let entry of entries) {
Logger.logInfo("executing action " + action.toUpperCase() +
" on history entry " + JSON.stringify(entry));
switch(action) {
@@ -410,7 +410,7 @@ let TPS = {
HandlePasswords: function (passwords, action) {
try {
- for each (password in passwords) {
+ for (let password of passwords) {
let password_id = -1;
Logger.logInfo("executing action " + action.toUpperCase() +
" on password " + JSON.stringify(password));
@@ -450,7 +450,7 @@ let TPS = {
},
HandleAddons: function (addons, action, state) {
- for each (let entry in addons) {
+ for (let entry of addons) {
Logger.logInfo("executing action " + action.toUpperCase() +
" on addon " + JSON.stringify(entry));
let addon = new Addon(this, entry);
@@ -483,7 +483,7 @@ let TPS = {
let items = [];
for (folder in bookmarks) {
let last_item_pos = -1;
- for each (bookmark in bookmarks[folder]) {
+ for (let bookmark of bookmarks[folder]) {
Logger.clearPotentialError();
let placesItem;
bookmark['location'] = folder;
@@ -525,7 +525,7 @@ let TPS = {
}
if (action == ACTION_DELETE || action == ACTION_MODIFY) {
- for each (item in items) {
+ for (let item of items) {
Logger.logInfo("executing action " + action.toUpperCase() +
" on bookmark " + JSON.stringify(item));
switch(action) {
@@ -689,7 +689,7 @@ let TPS = {
// care about.
if (settings.ignoreUnusedEngines && Array.isArray(this._enabledEngines)) {
let names = {};
- for each (let name in this._enabledEngines) {
+ for (let name of this._enabledEngines) {
names[name] = true;
}