Is this the usual thing? If I wanted to give a callback but not a trans I would usually do

    markWithError(myCalendar, myError, undefined /** opt_transaction */, function() { ... });

But I do like that it's forgiving.