" ",
" var pal = _this.file.project.palete;",
" ",
- " string[] opts;",
- " var has_opts = pal.typeOptions(_this.node.fqn(), prop.name, prop.rtype, out opts);",
+ " string[] opts = {};",
+ " ",
+ " var has_opts = prop.ptype.can_have_opt_list() ? ",
+ " \tpal.typeOptions(_this.node.fqn(), prop.name, prop.rtype, out opts)",
+ " \t: false;",
" ",
" if (!has_opts && prop.ptype == JsRender.NodePropType.RAW) {",
" \tuse_textarea = true;",