diff options
author | anekos | 2010-03-14 12:17:56 +0000 |
---|---|---|
committer | anekos | 2010-03-14 12:17:56 +0000 |
commit | 8cd26b53f7ed6e567bae62c1ea29d5345b311173 (patch) | |
tree | 15e39a39ff6e1e70befdcb988d27f10b528d9ba8 | |
parent | 263f13c85785f92c4012f176bf6dc760247931df (diff) | |
download | vimperator-plugins-8cd26b53f7ed6e567bae62c1ea29d5345b311173.tar.bz2 |
title も BarTap に対応
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37024 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-x | tabsort.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -38,7 +38,7 @@ let PLUGIN_INFO = <name>tabsort</name> <description>Add ":tabsort" and ":tabuniq" command.</description> <description lang="ja">":tabsort", ":tabuniq" コマンドを追加する</description> - <version>1.1.1</version> + <version>1.1.2</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <minVersion>2.3</minVersion> <maxVersion>2.3</maxVersion> @@ -74,8 +74,8 @@ let PLUGIN_INFO = tab: tab, browser: #1=(tab.linkedBrowser), doc: #2=(#1#.contentDocument), - url: (#1#._userTypedValue || (#2#.location && #2#.location.href)), - title: #2#.title, + url: (#1#.__SS_restore_data ? #1#.__SS_restore_data.url : (#2#.location && #2#.location.href)), + title: (#2#.title || #1#.__SS_restore_data.title) } for ([i, tab] in util.Array(config.browser.mTabs)) ]; @@ -94,7 +94,7 @@ let PLUGIN_INFO = rms.forEach(function (rm) config.tabbrowser.removeTab(rm.tab)); } - // getTabs().forEach(liberator.log); + getTabs().forEach(liberator.log); function tabSort (cmp) { getTabs().sort(cmp).forEach(function (it, i) (i == it.index) || config.tabbrowser.moveTabTo(it.tab, i)); |