wdavidw/node-connect-coffee-script — pull request #7 by marat-dreizin (2012-11-15 14:26:37+00:00)
Title: Fixed an issue is related to `clone` method

Currently, if you try to use `bare` options, you will get compiled file with top-level function safety wrapper, because `clone` method works incorrectly and current pull request helps to fix that.

Some notes about fix:

I have switched to `clone` function of `underscore` library and moved using of `clone` function to main `compile = ->` function (because we can override compile behaviour via options, but in this case we also should have cloned version of original options to prevent potential problems).

I understand that you would like to keep this middleware simple, but using of `undescrore` library give us ability to use unified approach to manipulating objects (for instance for `clone`, `omit`, `pick`).

Fo instance, `omit`, `pick` methods we can use to pass only properties into `coffeeScript.compile` that we want.