hij1nx/weld — pull request #37 by chrisdeely (2011-10-28 01:13:55+00:00)
Title: Added ability to set value by returning String from map function

Returning a String from the map function will use the Sting as the
element text value.
Added tests and corrected some tests with outdated parameters to the
map function

Example:
weld($(template)[0], [
{
where : 'do not display this',
other : 'stuff'
}
], {
map : function(parent, element, k, v) {
if(k == 'where')
{
return 'display this instead';
}
return true;
}
});