Raynos / mercury

A truly modular frontend framework
http://raynos.github.io/mercury/
MIT License
2.82k stars 143 forks source link

Reflect changes in value on shared state. #173

Closed hemanth closed 9 years ago

hemanth commented 9 years ago

For example on shared-state if we do:

document.querySelector('input').value = 'meow'

p.content does not get updated.

//cc @Raynos @ashnur

ashnur commented 9 years ago

I think that would go against unidirectionality.

hemanth commented 9 years ago

document.querySelector('input').value vs the user typing in the input area?

neonstalwart commented 9 years ago

@hemanth the problem is that setting the value directly does not generate a DOM event - this is not something which mercury can fix :smile:

see http://output.jsbin.com/yewiwohome/1/edit?html,console,output

hemanth commented 9 years ago

:+1: @ashur was describing the same at #javascript :)