Changeset 37867

Show
Ignore:
Timestamp:
06/28/10 01:37:17 (3 years ago)
Author:
anekos
Message:

謎の echo が発生する問題に対処

http://twitter.com/1wingedangel/status/17069586090

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/maine_coon.js

    r37853 r37867  
    425425  } 
    426426 
    427   autocommands.add( 
    428     'DOMLoad', 
    429     /.*/, 
    430     function (args) { 
    431       if (displayURL) 
    432         echo(args.url); 
    433     } 
     427  events.addSessionListener( 
     428    document.getElementById("appcontent"), 
     429    "DOMContentLoaded", 
     430    function (event) { 
     431      let doc = event.originalTarget; 
     432      if (doc instanceof HTMLDocument && !doc.defaultView.frameElement && displayURL) 
     433        echo(doc.location.href); 
     434    }, 
     435    true 
    434436  ); 
    435437