Permalink
Browse files

Merge pull request #8 from elfsternberg/master

Patch to fix coffeescript's modifying the options object.
  • Loading branch information...
2 parents 7c3d875 + d64c5b6 commit cd03804c56f3aa61d132b115fabb08d32d9350b5 @avalade committed Jul 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 tasks/coffee.js
View
@@ -20,8 +20,9 @@ module.exports = function(grunt) {
var dest = this.file.dest,
options = this.data.options,
extension = this.data.extension;
+
grunt.file.expandFiles(this.file.src).forEach(function(filepath) {
- grunt.helper('coffee', filepath, dest, options, extension);
+ grunt.helper('coffee', filepath, dest, grunt.utils._.clone(options), extension);
});
if (grunt.task.current.errorCount) {

0 comments on commit cd03804

Please sign in to comment.