I am trying to assign a function to a property on bunch of elements using .prop()
$('.whatever').prop({MyProp:MyFunc});
Looking closely at the documentation for this function it seems there is a special behaviour where the value is a function and the property will NOT be assigned the function but rather the functions return value.
Is there a simple workaround for this or should I just use
$('.whatever').each(function(id, item){item.MyProp=MyFunc;});