aboutsummaryrefslogtreecommitdiffstats
path: root/ex_autocmd.js
diff options
context:
space:
mode:
authordrry2008-11-03 15:58:50 +0000
committerdrry2008-11-03 15:58:50 +0000
commit443857dffe946e93865bfd36bef4001203df2a39 (patch)
treedba694b23739c5c88c6d16eb596ab832430d77c7 /ex_autocmd.js
parent596c1ec007a3f431b84da3fed1a30871e8bd64dc (diff)
downloadvimperator-plugins-443857dffe946e93865bfd36bef4001203df2a39.tar.bz2
* cosmetic changes.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@22654 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'ex_autocmd.js')
-rw-r--r--ex_autocmd.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ex_autocmd.js b/ex_autocmd.js
index dccccda..190110b 100644
--- a/ex_autocmd.js
+++ b/ex_autocmd.js
@@ -3,7 +3,7 @@
// License: Creative Commons
// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid
//
-// extends autocmd for vimperator0.6.*
+// extends autocmd for Vimperator
// Ex Events:
// TabSelect
// TabLeave
@@ -11,7 +11,7 @@
var recentTabURI = null;
function tabSelect(e){
- liberator.modules.autocommands.trigger("TabLeave",recentTabURI ? recentTabURI : "");
+ liberator.modules.autocommands.trigger("TabLeave",recentTabURI || "");
liberator.modules.autocommands.trigger("TabSelect",gBrowser.selectedTab.linkedBrowser.contentWindow.location.href);
recentTabURI = gBrowser.selectedTab.linkedBrowser.contentWindow.location.href;
}
@@ -20,7 +20,7 @@ gBrowser.tabContainer.addEventListener("TabSelect",tabSelect,false);
function currentPageLoad(e){
var doc = e.originalTarget;
- if (doc instanceof HTMLDocument && doc == gBrowser.contentDocument){
+ if (doc instanceof HTMLDocument && doc == gBrowser.contentDocument){
liberator.modules.autocommands.trigger("CurrentPageLoad",doc.documentURI);
recentTabURI = doc.documentURI;
}