Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Laya.stage.bgColor背景透明源码报错 #51

Open
qq986063761 opened this issue Jul 19, 2018 · 1 comment
Open

Laya.stage.bgColor背景透明源码报错 #51

qq986063761 opened this issue Jul 19, 2018 · 1 comment

Comments

@qq986063761
Copy link

问题:设置Laya.stage.bgColor = null后控制台报错;
版本:LayaAir 1.7.18;
代码如下图:
image
表现如下图:
image
经过调试发现源码报错位置如下图:
image
总结:
虽然源码中判断isNaN(color) 则return,但是控制台我发现isNaN(null)其实是false;

@qq986063761
Copy link
Author

好像我把源码中之前做了if (!color) return;把报错解决了,但是透明又失效了;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant