Open Kuuga46 opened 2 years ago
I don't understand why we excute 'updateDom' in the function 'createDom'.It seems that we would change the dom before 'commit',and that should not happen in 'performUnitOfWork'
I found the reason:
updateDom方法貌似只是用来处理dom元素的一些attributes以及一些事件绑定,创建了dom以后不就应该即可绑定属性、事件吗?而且updateDom里的逻辑也不存在把dom挂载到页面的行为,应该没问题吧?
I don't understand why we excute 'updateDom' in the function 'createDom'.It seems that we would change the dom before 'commit',and that should not happen in 'performUnitOfWork'