Closed gpopoteur closed 9 years ago
Out of personal preference I try and keep all vars as snake_case
and all function names as camelCase
. Call me weird but that's just my style.
@tyvdh fair enough. Might be cool to add that explanation to the readme
file or to a WiKi entry for future reference.
… Has backward compatibility when passing the options in snake_case, to make sure it doesn't break current uses of this library.
Inside the source code there is not a naming convention standard for attributes and methods, the names are both in
camelCase
andsnake_case
. This PR changes allsnake_case
names in the source to a more JS friendlycamelCase
.Further reading on JS Naming Conventions: Mozilla Developer Network: Javascript Tips Douglas Crockford's code conventions