Specs and code for custom refresh event