Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widget.query(selector)返回不准确 #57

Open
lizzie opened this issue Aug 1, 2013 · 2 comments
Open

Widget.query(selector)返回不准确 #57

lizzie opened this issue Aug 1, 2013 · 2 comments
Labels

Comments

@lizzie
Copy link
Member

lizzie commented Aug 1, 2013

当同一 DOM 元素上关联了多个 Widget 实例后, query 总是返回最后一个最近一个关联的实例, 最好返回数组.

这种需求在 Validator.query 组件中经常出现. aralejs/validator#31

@lianqin7
Copy link
Member

lianqin7 commented Oct 9, 2013

顶,最近也遇到了这个蛋疼的问题

@lifesinger @popomore

@popomore
Copy link
Member

那岂不是一个 DOM 上有多个 cid?

Update:貌似只能有一个 cid。

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

No branches or pull requests

3 participants