component / reactive

Tiny reactive template engine
382 stars 48 forks source link

Set multiple properties in the view #127

Closed chrisbuttery closed 10 years ago

chrisbuttery commented 10 years ago

Set multiple properties in a view at once.

view.set({
  'name': 'Barry',
  'age': 33
});
defunctzombie commented 10 years ago

When iterating over the object, just call self.set(key, value) instead of performing the same setter code. This will cut down on errors when the setter code changes.

chrisbuttery commented 10 years ago

Cool. Now calling self.set(name, prop[name]);

defunctzombie commented 10 years ago

After changes, please squash commits.

chrisbuttery commented 10 years ago

thanks for the git tips @anthonyshort