mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
style fixes to command.coffee
This commit is contained in:
@@ -58,9 +58,9 @@
|
||||
};
|
||||
|
||||
compileScripts = function() {
|
||||
var base, compile, remaining_files, source, trackCompleteFiles, trackUnprocessedFiles, unprocessed, _i, _j, _len, _len2, _results;
|
||||
var base, compile, remainingFiles, source, trackCompleteFiles, trackUnprocessedFiles, unprocessed, _i, _j, _len, _len2, _results;
|
||||
unprocessed = [];
|
||||
remaining_files = function() {
|
||||
remainingFiles = function() {
|
||||
var total, x, _i, _len;
|
||||
total = 0;
|
||||
for (_i = 0, _len = unprocessed.length; _i < _len; _i++) {
|
||||
@@ -76,7 +76,7 @@
|
||||
trackCompleteFiles = function(sourceIndex, fileCount) {
|
||||
unprocessed[sourceIndex] -= fileCount;
|
||||
if (opts.join) {
|
||||
if (helpers.compact(contents).length > 0 && remaining_files() === 0) {
|
||||
if (helpers.compact(contents).length > 0 && remainingFiles() === 0) {
|
||||
return compileJoin();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ exports.run = ->
|
||||
# '.coffee' extension source files in it and all subdirectories.
|
||||
compileScripts = ->
|
||||
unprocessed = []
|
||||
remaining_files = ->
|
||||
remainingFiles = ->
|
||||
total = 0
|
||||
total += x for x in unprocessed
|
||||
total
|
||||
@@ -89,7 +89,7 @@ compileScripts = ->
|
||||
trackCompleteFiles = (sourceIndex, fileCount) ->
|
||||
unprocessed[sourceIndex] -= fileCount
|
||||
if opts.join
|
||||
if helpers.compact(contents).length > 0 and remaining_files() == 0
|
||||
if helpers.compact(contents).length > 0 and remainingFiles() is 0
|
||||
compileJoin()
|
||||
for source in sources
|
||||
trackUnprocessedFiles sources.indexOf(source), 1
|
||||
|
||||
Reference in New Issue
Block a user