closed #3290: [JSB] The order of onEnter and onExit is wrong. For develop branch.
Merge pull request #4725 from dumganhar/iss3290-onenter-order-develop

closed #3290: [JSB] The order of onEnter and onExit is wrong. For develop branch.