Optimize the bind event handler code


Signed-off-by: jssoscar
Date: 2013-10-19 16:06:46