Makes singleton variable name of PointerLockManager lowercase

When we require a singleton, its instance name should be named
by lowercase, since it is not a class.

Relates to #128
This commit is contained in:
logsol 2016-10-10 22:42:22 +02:00
parent 3cb2e39a18
commit ce01c8888e
5 changed files with 11 additions and 11 deletions

View file

@ -6,7 +6,7 @@ define([
"Game/Client/PointerLockManager"
],
function (Settings, nc, Screenfull, Graph, PointerLockManager) {
function (Settings, nc, Screenfull, Graph, pointerLockManager) {
"use strict";
@ -137,7 +137,7 @@ function (Settings, nc, Screenfull, Graph, PointerLockManager) {
button.innerHTML = "Fullscreen";
button.onclick = function() {
if(Screenfull.enabled) {
PointerLockManager.request();
pointerLockManager.request();
Screenfull.request(self.canvas);
}
};

View file

@ -14,7 +14,7 @@ define([
"Game/Client/View/Pixi/Layers/Messages"
],
function (Parent, domController, PIXI, Settings, nc, Exception, GameStats, LayerManager, Ghost, Swiper, PointerLockManager, Debug, Messages) {
function (Parent, domController, PIXI, Settings, nc, Exception, GameStats, LayerManager, Ghost, Swiper, pointerLockManager, Debug, Messages) {
"use strict";
@ -231,7 +231,7 @@ function (Parent, domController, PIXI, Settings, nc, Exception, GameStats, Layer
this.renderer.resize(window.innerWidth, window.innerHeight);
this.currentZoom = window.innerWidth / 600;
PointerLockManager.update(null, {}); // only to reposition clickToEnable text
pointerLockManager.update(null, {}); // only to reposition clickToEnable text
};
PixiView.prototype.initLoader = function() {