Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
Description: Object inherits all of reference Object's properties and methods.

Syntax: assign(Object, reference Object)

function assign(a, b) {
       for(var x in b)
               if(!a[x] || b[x].constructor != Object)
                       a[x] = b[x];
               else
                       assign(a[x], b[x]);
       return a;
}


newBookmarkLockedFalling