在我的档案matte_design.js
中:
/*exported matte_design_change */
/*exported matte_design_populate_types */
...
function matte_design_change(cid, selected_type, x, y, opening_width, opening_height)
{
...
}
...
function matte_design_populate_types()
{
...
}
这些功能用于其他文件。即使使用exported
指令,我仍然会收到错误:'matte_design_change' is defined but never used
和'matte_design_populate_types' is defined but never used
。
我在这里做错了什么?