mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Makes singleton variable name of OptionsHelper 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
05c4e4de81
commit
5b3bfd4370
6 changed files with 13 additions and 13 deletions
|
|
@ -8,7 +8,7 @@ define([
|
|||
"Lib/Utilities/Assert"
|
||||
],
|
||||
|
||||
function (Parent, Box2D, OptionsHelper, Settings, Exception, nc, Assert) {
|
||||
function (Parent, Box2D, optionsHelper, Settings, Exception, nc, Assert) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ function (Parent, Box2D, OptionsHelper, Settings, Exception, nc, Assert) {
|
|||
y: parseFloat(options.y)
|
||||
};
|
||||
|
||||
this.options = OptionsHelper.merge(floatOptions, options);
|
||||
this.options = optionsHelper.merge(floatOptions, options);
|
||||
|
||||
if(!this.options.category) {
|
||||
// FIXME add more validation
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ define([
|
|||
"Game/Config/ItemSettings",
|
||||
],
|
||||
|
||||
function (Parent, Box2D, Settings, nc, Assert, OptionsHelper, ItemSettings) {
|
||||
function (Parent, Box2D, Settings, nc, Assert, optionsHelper, ItemSettings) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
|
@ -96,8 +96,8 @@ function (Parent, Box2D, Settings, nc, Assert, OptionsHelper, ItemSettings) {
|
|||
|
||||
|
||||
// FIXME
|
||||
var ragdollOptions = OptionsHelper.merge(ItemSettings.RagDoll, ItemSettings.Default);
|
||||
options = OptionsHelper.merge(options, ragdollOptions);
|
||||
var ragdollOptions = optionsHelper.merge(ItemSettings.RagDoll, ItemSettings.Default);
|
||||
options = optionsHelper.merge(options, ragdollOptions);
|
||||
Parent.call(this, physicsEngine, uid, options);
|
||||
//this.createSensor();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue