Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

1 participant

@etiennesegonzac
Collaborator

No description provided.

@etiennesegonzac etiennesegonzac merged commit ec4a13e into mozilla-b2g:master
@etiennesegonzac etiennesegonzac deleted the etiennesegonzac:facepalm branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 6, 2012
  1. @etiennesegonzac

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

    etiennesegonzac authored
    r=vingtetun a=stupid (and vingtetun)
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 4 deletions.
  1. +5 −4 apps/communications/dialer/js/oncall.js
View
9 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;
}
},
Something went wrong with that request. Please try again.