Fixes #829. Improve - CPView removeFromSuperview performance.

In the modified test described in #829 performance improves by at least 30% and that's with a significant addSubview: component diluting the test.

This change should improve outline and table view performance.
This commit is contained in:
Alexander Ljungberg
2013-02-24 17:36:30 +00:00
parent 0268f9865c
commit ce7e5122e0
+2 -2
View File
@@ -565,10 +565,10 @@ var CPViewFlags = { },
[_superview willRemoveSubview:self];
[_superview._subviews removeObject:self];
[_superview._subviews removeObjectIdenticalTo:self];
#if PLATFORM(DOM)
CPDOMDisplayServerRemoveChild(_superview._DOMElement, _DOMElement);
CPDOMDisplayServerRemoveChild(_superview._DOMElement, _DOMElement);
#endif
_superview = nil;