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
|
|
@ -10,7 +10,7 @@ function (Exception) {
|
|||
|
||||
}
|
||||
|
||||
OptionsHelper.prototype.merge = function(options, preset) {
|
||||
optionsHelper.prototype.merge = function(options, preset) {
|
||||
|
||||
if(!preset && !options) {
|
||||
throw new Exception("OptionsHelper requires objects");
|
||||
|
|
@ -43,7 +43,7 @@ function (Exception) {
|
|||
if(options[key].constructor !== Object) {
|
||||
preset[key] = options[key];
|
||||
} else {
|
||||
preset[key] = OptionsHelper.prototype.merge.call(this, options[key], preset[key]);
|
||||
preset[key] = optionsHelper.prototype.merge.call(this, options[key], preset[key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue