Show
Ignore:
Timestamp:
11/27/08 00:25:18 (6 weeks ago)
Author:
pekepeke
Message:

消し忘れのコード発見したため、修正。。。

Files:
1 modified

Legend:

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

    r24976 r24980  
    135135  if (acmanager.length > 0) { 
    136136    autocommands.add("LocationChange", '.*', 'js liberator.plugins.AutoProxyChanger.autoApplyProxy()'); 
    137     window.addEventListener("unload", function() applyProxyByName('default'), false); 
     137    //window.addEventListener("unload", function() applyProxyByName('default'), false); 
    138138  } 
    139139 
     
    207207    bang: true, 
    208208    completer: function(context, arg, special){ 
    209         context.title = ['Name','Usage']; 
    210       var list = context.filter ?  
    211                 proxy_settings.filter( function(el) this.test(el.name), new RegExp("^"+context.filter)) 
    212                 : proxy_settings; 
    213         context.completions = list.map( function(v) [v.name, v.usage] ); 
     209      context.title = ['Name','Usage']; 
     210      var list = context.filter ? 
     211        proxy_settings.filter( function(el) this.test(el.name), new RegExp("^"+context.filter)) 
     212        : proxy_settings; 
     213      context.completions = list.map( function(v) [v.name, v.usage] ); 
    214214    } 
    215215});