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

...