mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
No need to check _windowHandlers, as DomEvent.remove does the right thing either way.
This commit is contained in:
parent
e9985a04a8
commit
f75386e8fb
1 changed files with 1 additions and 2 deletions
|
@ -173,8 +173,7 @@ var View = this.View = Base.extend(Callback, /** @lends View# */{
|
|||
this._project.view = null;
|
||||
// Uninstall event handlers again for this view.
|
||||
DomEvent.remove(this._element, this._handlers);
|
||||
if (this._windowHandlers)
|
||||
DomEvent.remove(window, this._windowHandlers);
|
||||
DomEvent.remove(window, this._windowHandlers);
|
||||
this._element = this._project = null;
|
||||
// Removing all onFrame handlers makes the _onFrameCallback handler stop
|
||||
// automatically through its uninstall method.
|
||||
|
|
Loading…
Reference in a new issue