Ouch.

Yes, this should not happen.

Can you post a ticket on lighthouse?

On 2010-10-12, at 23:32, atom wrote:

> bit of unexpected behavior (which might be intentional).  When using
> Object.merge the objects I pass in are being altered, unlike how
> $merge used to behave.
> 
> old way:
> 
> var obj1 = {a: 1, b: 2, c: 3}
> var obj2 = {d: 4, e: 5, f: 6}
> var merged = $merge(obj1, obj2);
> console.log(obj1); // returns {a: 1, b: 2, c: 3}
> 
> new way:
> 
> var obj1 = {a: 1, b: 2, c: 3}
> var obj2 = {d: 4, e: 5, f: 6}
> var merged = Object.merge(obj1, obj2);
> console.log(obj1); // returns {a: 1, b: 2, c: 3, d: 4, e: 5, f: 6}

Reply via email to