-
Notifications
You must be signed in to change notification settings - Fork 34
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
Attribute的一处代码建议 #6
Comments
感谢 @lianqin7 的指正 这段代码放在 attribute.js 的确显得有点不妥当,我看能否移动到 base.js 里。 感谢。 |
感觉这两个都可以放到 base 中 |
还有 � |
� |
原来的执行顺序 现在的执行顺序
从功能上看这三者并没有必然的联系,所以调整顺序应该不会有什么影响,而且初始化后再监听事件也是合情合理的。 |
@lifesinger
attribute.js里42-43行代码(initAttrs 方法中):
这段代码的作用是做 自定义事件绑定及AOP绑定 的 语法糖 ,不过attribute.js这个文件应该更专注于attribute的处理,这段代码及相关操作放base.js里会不会 更直观
P.S. 吐槽下,这是个非常好用的语法糖,可是各个文档里的都没有介绍,如果不是认真看了源码,还真可能漏了(囧) ,望文档补全,谢谢:)
The text was updated successfully, but these errors were encountered: