Bad naming.  `done` here is a local variable referencing the callback for the mock cursor traversal.  I've changed the code to remove ambiguity.