Permalink
Browse files

Merge pull request #6854 from etiennesegonzac/facepalm

Bug 817888 follow up - fixing stupid, stupid, JS mistake. stupid.
  • Loading branch information...
2 parents 7baaf75 + 0d32a96 commit ec4a13e52a10ab1b57a7778acc53e18021f2ff5a @etiennesegonzac etiennesegonzac committed Dec 6, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 apps/communications/dialer/js/oncall.js
@@ -2,6 +2,7 @@
var CallScreen = {
_ticker: null,
+ _screenLock: null,
screen: document.getElementById('call-screen'),
views: document.getElementById('views'),
@@ -131,16 +132,16 @@ var CallScreen = {
this.callToolbar.classList.add('transparent');
this.incomingContainer.classList.add('displayed');
- screenLock = navigator.requestWakeLock('screen');
+ this._screenLock = navigator.requestWakeLock('screen');
},
hideIncoming: function cs_hideIncoming() {
this.callToolbar.classList.remove('transparent');
this.incomingContainer.classList.remove('displayed');
- if (screenLock) {
- screenLock.unlock();
- screenLock = null;
+ if (this._screenLock) {
+ this._screenLock.unlock();
+ this._screenLock = null;
}
},

0 comments on commit ec4a13e

Please sign in to comment.