Skip to content
Myr

Merge pull request #353 from nkzawa/patch-0

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add support for camelCase on opts()

authored by Randall Koutnik · committed by Randall Koutnik · parents 26b0e12, 22b9168 · Browse files · 2 files+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−2 removed

  • tests:+3 added−1 removed
  • other:+1 added−1 removed

2 files+4 added−2 removed

modified:test/test.options.func.js+3 added-1 removed
modified:index.js+1 added-1 removed
686 unmodified lines
687 var result = {}688 , len = this.options.length;689690 for (var i = 0 ; i < len; i++) {691 var key = this.options[i].name();691 var key = camelcase(this.options[i].name());692 result[key] = key === 'version' ? this._version : this[key];693 }694 return result;695};
352 unmodified lines