Skip to content

Commit

Permalink
Make a copy of the array, instead of referencing it as we are doing a…
Browse files Browse the repository at this point in the history
… slice operation on the steps that is

preventing us from calling this function over and over again
  • Loading branch information
3rd-Eden committed Jun 11, 2012
1 parent 96477fa commit 5315ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/crush.js
Expand Up @@ -60,7 +60,7 @@ module.exports = function setup (options) {

// setup
var logger = this.logger
, steps = level[output.extension === 'js' ? configuration.level : 0]
, steps = level[output.extension === 'js' ? configuration.level : 0].slice(0)
, compiled = output.content
, errs = [];

Expand Down

0 comments on commit 5315ded

Please sign in to comment.