mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
style fixes to command.coffee
This commit is contained in:
parent
5bca978444
commit
ee8a1a3b68
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue