Problem
You want to set multiple properties on an object with a single method call.
Solution
Use the setProperties
method of Ember.Object
.
person.setProperties({
name: 'Gavin',
age: 36
})
You want to set multiple properties on an object with a single method call.
Use the setProperties
method of Ember.Object
.
person.setProperties({
name: 'Gavin',
age: 36
})