ライブラリ更新

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5718 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-01-04 07:51:30 +00:00
parent fc1bd230d2
commit df920e0ff6

View File

@ -146,7 +146,7 @@
var history = options.history;
return {
entries : history.entries,
index : Math.max(0, Math.min(history.entries.length-1, history.index))
index : Math.min(history.entries.length-1, Math.max(0, history.index))
};
},