Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4822 from gregorwagner/settings

replace getLock
  • Loading branch information...
commit bc8524579eb9ab9d8b2c3192cfb5485011ff7022 2 parents 84c9767 + 0a18c6b
Fabien Cazenave fabi1cazenave authored
2  apps/clock/js/alarm.js
View
@@ -528,7 +528,7 @@ var AlarmManager = {
var request = navigator.mozAlarms.getAll();
request.onsuccess = function(e) {
var hasAlarmEnabled = !!e.target.result.length;
- navigator.mozSettings.getLock().set({'alarm.enabled': hasAlarmEnabled});
+ navigator.mozSettings.createLock().set({'alarm.enabled': hasAlarmEnabled});
ClockView.showHideAlarmSetIndicator(hasAlarmEnabled);
};
request.onerror = function(e) {
2  apps/keyboard/js/keyboard.js
View
@@ -220,7 +220,7 @@ var SettingsListener = {
return;
}
- var req = settings.getLock().get(name);
+ var req = settings.createLock().get(name);
req.addEventListener('success', (function onsuccess() {
callback(typeof(req.result[name]) != 'undefined' ?
req.result[name] : defaultValue);
2  apps/sms/js/sms.js
View
@@ -1045,7 +1045,7 @@ var ThreadUI = {
if (settings) {
- var req = settings.getLock().get('ril.radio.disabled');
+ var req = settings.createLock().get('ril.radio.disabled');
req.addEventListener('success', (function onsuccess() {
var status = req.result['ril.radio.disabled'];
Please sign in to comment.
Something went wrong with that request. Please try again.