Merge pull request #529 from Jackyjjc/master

Add previousSibling and nextSibling
Fix _generateEvent infinite loop problem