Added m.Base#hasState and m.Base#toggleState
Fixed click event