Permalink
Browse files

Make a copy of the array, instead of referencing it as we are doing a…

… slice operation on the steps that is

preventing us from calling this function over and over again
  • Loading branch information...
1 parent 96477fa commit 5315dedaa8da02e185af145ab881b476cc98b919 @3rd-Eden 3rd-Eden committed Jun 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/crush.js
View
@@ -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 = [];

0 comments on commit 5315ded

Please sign in to comment.