Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tiny memory leak. Remove the cached layer so that the DOM node can be…

… released.
  • Loading branch information...
commit 7249d2bb9e24addd4abf3cb2f3811ea695280d45 1 parent a9a32bc
@publickeating publickeating authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  frameworks/core_foundation/panes/pane.js
View
3  frameworks/core_foundation/panes/pane.js
@@ -439,6 +439,9 @@ SC.Pane = SC.View.extend(SC.ResponderContext,
if (dom && dom.parentNode) dom.parentNode.removeChild(dom) ;
dom = null ;
+ // layer is cached by SC.View in this._view_layer, remove it so that the DOM node can be freed
+ this._view_layer = null;
+
// remove intercept
this._removeIntercept();
Please sign in to comment.
Something went wrong with that request. Please try again.