Skip to content

Commit

Permalink
エラーメッセージをクラスの外に出した
Browse files Browse the repository at this point in the history
  • Loading branch information
imaz committed May 9, 2012
1 parent 623c3c5 commit c14b423
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bubble.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@

var error_usage = function(){
console.error('Usage: node bubble.js [--color (blue|red|yellow|green)]');
process.exit(1);
};

var rr = function(min,max){
var range = max+1 - min;
return Math.floor(Math.random() * range) + min;
};

function Color(){
this.kind_index = 0;
var error_usage = function(){
console.error('Usage: node bubble.js [--color (blue|red|yellow|green]');
process.exit(1);
};
var args = process.argv.slice(2);
this.kind_set = ['blue','red','yellow','green'];
while(args.length){
Expand Down

0 comments on commit c14b423

Please sign in to comment.