Permalink
Browse files

Fixing bug with Jake

  • Loading branch information...
1 parent 27b4ffb commit c596d21e670d4e211c8073f0acd4cffa3b3f8866 Johan BLEUZEN committed Nov 4, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −3 cssmin.js
View
8 cssmin.js 100644 → 100755
@@ -4,16 +4,18 @@
exports.cssmin = cssmin;
-function cssmin(input, linebreak) {
+function cssmin(data, linebreak) {
if(linebreak == null){
linebreak = 0;
}
+ var input = String(data);
+
/*
* Normalize whitespace by removing \t, \n, ...
*/
- output = input.replace(/\s+/g, " ");
+ var output = input.replace(/\s+/g, " ");
/**
* Remove comments from source
@@ -81,4 +83,4 @@ function cssmin(input, linebreak) {
}
return output;
-}
+}

0 comments on commit c596d21

Please sign in to comment.