fix layer.hide().show() in ie9

IE9 want to show layer after hiding without this fix :(
Merge pull request #53 from hshhhhh/master

fix layer.hide().show() in ie9