This project is read-only.


Add Lava.sync() method to lava.core


Added method Lava.sync() to core. This method will be used to sync one object with another. It is identical to setting each of the target object's property values with the source object's property values.

Consider the following:

We have 2 Person objects, person1 and person2, with properties firstName and lastName. If we wish to make person1 identical to person to with regard to data, there are two ways to do this:

(1) set each property:

person1.firstName = person2.firstName;
person1.lastName = person2.lastName;

(2) use sync():

person1.sync(person2); (or, Lava.sync(person1, person2); )
Closed Aug 22, 2013 at 6:39 AM by tjscience


wrote Aug 22, 2013 at 6:39 AM

Resolved with changeset 28344.

wrote Nov 28 at 8:14 AM