You cannot set more than one attribute at a time. You need to call the method settwice.
If you just want to avoid triggering a change event, assign the attribute without using the method set:
model.foo = "foo" ;
model.set("bar", "bar");
source
share