mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-04 18:03:45 -04:00
Better console logging for Vectors and shapes.
This commit is contained in:
parent
88ebd5f46b
commit
1c14059d92
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ var console = {
|
||||||
var args = [].slice.call(arguments);
|
var args = [].slice.call(arguments);
|
||||||
for(var i = 0; i < args.length; ++i) {
|
for(var i = 0; i < args.length; ++i) {
|
||||||
if(args[i] && args[i].constructor) {
|
if(args[i] && args[i].constructor) {
|
||||||
if(args[i].constructor.className === "Thang" || args[i].isComponent)
|
if(args[i].constructor.className === "Thang" || args[i].isComponent || args[i].isVector || args[i].isRectangle || args[i].isEllipse)
|
||||||
args[i] = args[i].toString();
|
args[i] = args[i].toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue