events/resize: fix teardown
This commit is contained in:
parent
f553e914e7
commit
ec66902889
1 changed files with 1 additions and 2 deletions
|
|
@ -51,9 +51,8 @@ module.exports = {
|
|||
teardown: function() {
|
||||
|
||||
if (!options) return
|
||||
elements.push(options.element)
|
||||
|
||||
if (elements.indexOf(options.element) == -1) {
|
||||
if (elements.indexOf(options.element) != -1) {
|
||||
elements.splice(elements.indexOf(options.element), 1)
|
||||
delete options.element._resize_widget
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue