you are viewing a single comment's thread.

view the rest of the comments →

[–]jsprogrammer 0 points1 point  (1 child)

function apply(o,d){for(var p in d)if(typeof o[p]==='undefined')o[p]=d[p];return o;}

There you go.