Permalink
Browse files

Merge pull request #8 from elfsternberg/master

Patch to fix coffeescript's modifying the options object.
  • Loading branch information...
avalade committed Jul 24, 2012
2 parents 7c3d875 + d64c5b6 commit cd03804c56f3aa61d132b115fabb08d32d9350b5
Showing with 2 additions and 1 deletion.
  1. +2 −1 tasks/coffee.js
@@ -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.