fix bug: toHTML produces the problem of event binding
Merge pull request #3 from ShengYuan/master

fix bug: toHTML produces the problem of event binding