fix event query support in jsapi model