Fix missing "this" problem

This commit is contained in:
Piro / SHIMODA Hiroshi 2012-08-05 05:58:35 +09:00
parent 3657a95c2e
commit 26d060919e

View File

@ -5949,8 +5949,8 @@ TreeStyleTabBrowser.prototype = {
this.smoothScrollTask = function(aTime, aBeginning, aChange, aDuration) { this.smoothScrollTask = function(aTime, aBeginning, aChange, aDuration) {
if (self.isDestroying) return true; if (self.isDestroying) return true;
var scrollBoxObject = self.scrollBoxObject; var scrollBoxObject = self.scrollBoxObject;
if (aTime >= aDuration || this.deferredTasks['cancelPerformingAutoScroll']) { if (aTime >= aDuration || self.deferredTasks['cancelPerformingAutoScroll']) {
if (!this.deferredTasks['cancelPerformingAutoScroll']) { if (!self.deferredTasks['cancelPerformingAutoScroll']) {
scrollBoxObject.scrollTo(aEndX, aEndY); scrollBoxObject.scrollTo(aEndX, aEndY);
/** /**
@ -5976,7 +5976,7 @@ TreeStyleTabBrowser.prototype = {
self.smoothScrollTo(aEndX, aEndY, parseInt(aDuration * 0.5)); self.smoothScrollTo(aEndX, aEndY, parseInt(aDuration * 0.5));
self = null; self = null;
scrollBoxObject = null; scrollBoxObject = null;
})).error(this.defaultDeferredErrorHandler).next(function() { })).error(self.defaultDeferredErrorHandler).next(function() {
delete self.deferredTasks[key]; delete self.deferredTasks[key];
}); });
} }