1. Use closure function instead of private function in serialize 2. Prohibit serialize dom node.