Skip to content

Instantly share code, notes, and snippets.

@efleming969
Created April 23, 2009 03:47
Show Gist options
  • Save efleming969/100287 to your computer and use it in GitHub Desktop.
Save efleming969/100287 to your computer and use it in GitHub Desktop.
$.fn.contacts.base = {
message: 'hello world'
};
var newObject = {
foo: 'foo'
};
// take the first object and mix it into the second object
$.customObject = $.extend( newObject, $.fn.contacts.base);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment