Skip to content

Conversation

@mportuga
Copy link
Member

Adding a set of destroy listeners that unbinds jquery events when the grid is destroyed.

#4203

Adding a set of destroy listeners that unbinds jquery events when the grid is destroyed.

#4203
@mportuga mportuga requested a review from dlgski December 23, 2016 18:28
}
$elm.on('$destroy', function unbindEvents() {
for ( var i = mouseWheeltoBind.length; i; ) {
$elm.off(mouseWheeltoBind[--i], cbs[fn]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks like it may be something that needs additional refactoring

@dlgski dlgski merged commit da942e9 into angular-ui:master Dec 28, 2016
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