Add data-options support to clearing.