Forgot typeof in check for clear method in child views