CCClass: allow array type working togather with getter (#3545)

This commit is contained in:
Jare Guo
2018-11-22 17:17:19 +08:00
committed by GitHub
parent 025695d245
commit 37f4f06419

View File

@@ -159,7 +159,7 @@ function checkUrl (val, className, propName, url) {
function parseType (val, type, className, propName) {
if (Array.isArray(type)) {
if (CC_EDITOR) {
if (CC_EDITOR && 'default' in val) {
var isArray = require('./CCClass').isArray; // require lazily to avoid circular require() calls
if (!isArray(val.default)) {
cc.warnID(5507, className, propName);