Bug 460769 - arrowscrollbox destruction should cancel smooth scrolling. r=enndeakin

This commit is contained in:
Dão Gottwald 2008-10-20 18:52:12 +02:00
Родитель cef4a27b64
Коммит 37719af365
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -42,6 +42,10 @@
</content> </content>
<implementation> <implementation>
<destructor><![CDATA[
this._stopSmoothScroll();
]]></destructor>
<field name="_scrollbox"> <field name="_scrollbox">
document.getAnonymousElementByAttribute(this, "anonid", "scrollbox"); document.getAnonymousElementByAttribute(this, "anonid", "scrollbox");
</field> </field>
@ -303,8 +307,10 @@
<method name="_stopSmoothScroll"> <method name="_stopSmoothScroll">
<body><![CDATA[ <body><![CDATA[
clearInterval(this._smoothScrollTimer); if (this._isScrolling) {
this._isScrolling = 0; clearInterval(this._smoothScrollTimer);
this._isScrolling = 0;
}
]]></body> ]]></body>
</method> </method>