Fix bindEvent, added getValueType