component / model

Minimalistic extensible data models
122 stars 40 forks source link

silent option for attr setter #22

Closed weepy closed 11 years ago

weepy commented 11 years ago

sometimes you want to avoid emitting...

matthewmueller commented 11 years ago

This is actually pretty easy to do without a silent option:

Instead of:

user.name('matt')

You'd just do:

user.attrs.name = 'matt'

Now I'm not sure if mucking around with the raw attrs object is a good idea in the long run, but it's probably fine for now.

weepy commented 11 years ago

good point !