Backed out changeset cc056f4f6316, as scrollbox.xml wasn't responsible for the leak

This commit is contained in:
Dão Gottwald 2009-07-10 14:54:13 +02:00
parent d536e0aa34
commit 15c0c3fe0e

View File

@ -44,7 +44,6 @@
<implementation>
<destructor><![CDATA[
this._stopSmoothScroll();
this._scrollTarget = null;
]]></destructor>
<field name="_scrollbox">
@ -242,10 +241,8 @@
}
self.scrollByPixels(distance);
if (!scrollAmounts.length) {
if (!scrollAmounts.length)
self._stopSmoothScroll();
self._scrollTarget = null;
}
}
// amountToScroll: total distance to scroll
@ -392,11 +389,8 @@
<method name="_stopSmoothScroll">
<body><![CDATA[
if (this._smoothScrollTimer) {
clearInterval(this._smoothScrollTimer);
this._smoothScrollTimer = 0;
}
if (this._isScrolling) {
clearInterval(this._smoothScrollTimer);
this._isScrolling = 0;
this._scrollTarget = null;
}