base class support jquery-like `ready` mechanism