Tencent / omi

Web Components Framework - Web组件框架

Home Page:http://omijs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

为啥只传两个参数给obaa?

chenzhutian opened this issue · comments

我注意到在这里
https://github.com/Tencent/omi/blob/master/packages/omix/utils/create.js#L214
这穿了两个参数给obaa函数, 但是obaa的定义是接收三个参数的(其中第二个是arr).

请问这是怎么回事? 我最近在写typescript的定义, 所以遇到这个问题

第二个参数是可选,代表需要监听的属性。不传代表监听所有的属性