mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
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:
parent
3cb2e39a18
commit
ce01c8888e
5 changed files with 11 additions and 11 deletions
|
|
@ -6,7 +6,7 @@ define([
|
|||
"Game/Client/PointerLockManager"
|
||||
],
|
||||
|
||||
function (Parent, nc, KeyboardAndMouse, Gamepad, PointerLockManager) {
|
||||
function (Parent, nc, KeyboardAndMouse, Gamepad, pointerLockManager) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
|
@ -115,7 +115,7 @@ function (Parent, nc, KeyboardAndMouse, Gamepad, PointerLockManager) {
|
|||
* and is not in between games
|
||||
*/
|
||||
PlayerController.prototype.isPlayerInputAllowed = function() {
|
||||
return PointerLockManager.isLocked()
|
||||
return pointerLockManager.isLocked()
|
||||
&& Parent.prototype.isPlayerInputAllowed.call(this);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue