mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Makes singleton object variable names of DomController first letter 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
875a40185e
commit
ffc55a204a
7 changed files with 15 additions and 16 deletions
|
|
@ -6,7 +6,7 @@ define([
|
|||
"Lib/Utilities/NotificationCenter"
|
||||
],
|
||||
|
||||
function (Abstract, DomController, Settings, Exception, Nc) {
|
||||
function (Abstract, domController, Settings, Exception, Nc) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ function (Abstract, DomController, Settings, Exception, Nc) {
|
|||
|
||||
AbstractView.prototype.initCanvas = function (canvas) {
|
||||
this.canvas = canvas;
|
||||
DomController.initCanvas(canvas);
|
||||
domController.initCanvas(canvas);
|
||||
}
|
||||
|
||||
AbstractView.prototype.setMe = function(player) {
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ function (Parent, DomController, PIXI, Settings, Nc, Exception, GameStats, Layer
|
|||
PixiView.prototype.init = function () {
|
||||
|
||||
var rendererOptions = {
|
||||
view: DomController.getCanvas(),
|
||||
view: domController.getCanvas(),
|
||||
antialiasing: false,
|
||||
transparent: false,
|
||||
resolution: 1
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
define([
|
||||
"Game/Client/View/Abstract/View",
|
||||
"Game/Client/View/DomController",
|
||||
"Lib/Vendor/Three",
|
||||
"Game/Config/Settings"
|
||||
],
|
||||
|
||||
function (Parent, DomController, Three, Settings) {
|
||||
function (Parent, Three, Settings) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue