Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #18644 from stasm/1000874-findmydevice-once
Browse files Browse the repository at this point in the history
Bug 1000874 - Clean up bootstrap mozL10n API use in FindMyDevice. r=dougt
  • Loading branch information
stasm committed May 2, 2014
2 parents 6f2efeb + c233cfc commit 3250655
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/findmydevice/js/commands.js
Expand Up @@ -217,4 +217,4 @@ var Commands = {
}
};

navigator.mozL10n.ready(Commands.init.bind(Commands));
navigator.mozL10n.once(Commands.init.bind(Commands));
2 changes: 1 addition & 1 deletion apps/findmydevice/js/findmydevice.js
Expand Up @@ -322,4 +322,4 @@ var FindMyDevice = {
}
};

navigator.mozL10n.ready(FindMyDevice.init.bind(FindMyDevice));
navigator.mozL10n.once(FindMyDevice.init.bind(FindMyDevice));
2 changes: 1 addition & 1 deletion apps/findmydevice/js/requester.js
Expand Up @@ -67,4 +67,4 @@ var Requester = {
}
};

navigator.mozL10n.ready(Requester.init.bind(Requester));
navigator.mozL10n.once(Requester.init.bind(Requester));
2 changes: 1 addition & 1 deletion apps/findmydevice/test/unit/findmydevice_test.js
Expand Up @@ -33,7 +33,7 @@ suite('FindMyDevice >', function() {
setup(function(done) {
realL10n = navigator.mozL10n;
navigator.mozL10n = {
ready: function(callback) {
once: function(callback) {
callback();
}
};
Expand Down

0 comments on commit 3250655

Please sign in to comment.