xavierlacot/joli.js — pull request #45 by antongorodezkiy (2014-10-15 22:38:42+00:00)
Title: For bulk values setting instead of using set in a loop

First I tried to use ```.fromArray()``` but after some struggle I understood, that if I'll use ```.fromArray()```, the ```.isChanged()``` will be always ```false```. So I propose to create separate method for setting some array/object at once instead of using ```.set()``` in a loop.

Example:

```
var record = Alloy.Globals.models.some_records.findOneBy('id', current.id);
record.setFromArray(current);
record.save();
```