Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification on JS coding style #12

Open
shashankmehta opened this issue Dec 8, 2013 · 0 comments
Open

Clarification on JS coding style #12

shashankmehta opened this issue Dec 8, 2013 · 0 comments

Comments

@shashankmehta
Copy link

Line no 49
var convert = fx.convert = function(val, opts) {

I'm trying to understand JS coding styles and I found this in money.js as well as underscore.js (you have mentioned it as inspiration the source code).

What's the reason to have a local variable convert when you could have just used fx.convert in it's place?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant