/** * Remove all previous registered events and listeners * */ public static function clear() { self::$events = array(); }