"Keep in mind this recursively calls attr( key, value ) or attr ( key, fn ), so if one of the properties you are passing is a function, the function will be evaluated and not stored as the attribute itself."
Question: The function should NOT will be evaluated... Any idea? Thanks!