krakenjs / kraken-devtools

Development-time tools for kraken.js applications.
Other
40 stars 32 forks source link

Simplify #56

Closed kylekatarnls closed 9 years ago

kylekatarnls commented 9 years ago

If you like it short, else you could declare variables only if typeof arguments[arguments.length - 1] === 'function' and so use less memory in the else case and get a fester function

grawk commented 9 years ago

Since this doesn't address any readability or performance concerns, I'd prefer to leave the present code as-is. Will leave open for any other comments and close tomorrow if nothing further on this one. @kylekatarnls I'll spend some time on your other PR now. Thanks for your contributions!