Skip to content

Conversation

@rickyhuang
Copy link
Contributor

In the functin show() there is a statement $(window).bind("resize", function (e) { ... }) to register a resize event handler to the window but no corresponding statement $(window).unbind("resize") in the function hide(). If we create new msgBox and close it and then repeat this operation for several times the DOM count will increase gradually.

In the functin show() there is a statement $(window).bind("resize", function (e) { ... }) to register a resize event handler to the window but no corresponding statement $(window).unbind("resize")  in the function hide(). If we create new msgBox and close it and then repeat this operation for several times the DOM count will increase gradually.
koppor added a commit that referenced this pull request Jun 13, 2014
@koppor koppor merged commit 9a8a7db into dotCtor:master Jun 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants