Skip to content

Instantly share code, notes, and snippets.

@heapwolf
Forked from tmpvar/gist:815907
Created February 8, 2011 05:21
Show Gist options
  • Save heapwolf/815912 to your computer and use it in GitHub Desktop.
Save heapwolf/815912 to your computer and use it in GitHub Desktop.
$(".content").weld(
{
some : "data",
user : "tmpvar"
},
{
map : function(key, value) {
$(this).attr("foo", value); // key is null if it is an array.
},
method : "append" // defines what action the insert method should do.
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment