無駄な条件分岐を削除

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5066 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-09-03 07:45:06 +00:00
parent dd13197c26
commit 65eabd7a90

View File

@ -1983,8 +1983,6 @@ TreeStyleTabBrowser.prototype = {
onScroll : function(aEvent)
{
var node = aEvent.originalTarget;
if (node && node.ownerDocument == document) {
if (this.lastScrollX < 0 || this.lastScrollY < 0) return;
var x = {}, y = {};
var scrollBoxObject = this.scrollBoxObject;
@ -1993,7 +1991,6 @@ TreeStyleTabBrowser.prototype = {
scrollBoxObject.scrollTo(this.lastScrollX, this.lastScrollY);
this.lastScrollX = -1;
this.lastScrollY = -1;
}
},
onTabbarOverflow : function(aEvent)