Permalink
Browse files

Bug 817888 follow up - fixing stupid, stupid, JS mistake. stupid.

r=vingtetun a=stupid (and vingtetun)
  • Loading branch information...
1 parent 7baaf75 commit 0d32a96f678917d3c33335be8e0d6095b5add6c7 @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 0d32a96

Please sign in to comment.