mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Remove unused util variable
This commit is contained in:
parent
f981e8747f
commit
602cb47a1e
1 changed files with 8 additions and 15 deletions
|
@ -42,23 +42,16 @@ Scratch3SensingBlocks.prototype.getMouseDown = function (args, util) {
|
||||||
return util.ioQuery('mouse', 'getIsDown');
|
return util.ioQuery('mouse', 'getIsDown');
|
||||||
};
|
};
|
||||||
|
|
||||||
Scratch3SensingBlocks.prototype.current = function (args, util) {
|
Scratch3SensingBlocks.prototype.current = function (args) {
|
||||||
var date = new Date();
|
var date = new Date();
|
||||||
switch (args.CURRENTMENU) {
|
switch (args.CURRENTMENU) {
|
||||||
case 'year':
|
case 'year': return date.getFullYear();
|
||||||
return date.getFullYear();
|
case 'month': return date.getMonth() + 1; // getMonth is zero-based
|
||||||
case 'month':
|
case 'date': return date.getDate();
|
||||||
return date.getMonth();
|
case 'dayofweek': return date.getDay();
|
||||||
case 'date':
|
case 'hour': return date.getHours();
|
||||||
return date.getDate();
|
case 'minute': return date.getMinutes();
|
||||||
case 'dayofweek':
|
case 'second': return date.getSeconds();
|
||||||
return date.getDay();
|
|
||||||
case 'hour':
|
|
||||||
return date.getHours();
|
|
||||||
case 'minute':
|
|
||||||
return date.getMinutes();
|
|
||||||
case 'second':
|
|
||||||
return date.getSeconds();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue