Changeset 38247

Show
Ignore:
Timestamp:
08/10/10 23:13:19 (3 years ago)
Author:
anekos
Message:

プラグインだけリロード可能にした

Files:
1 modified

Legend:

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

    r38237 r38247  
    2929  <description>Twitter Client using ChirpStream</description> 
    3030  <description lang="ja">OAuth対応Twitterクライアント</description> 
    31   <version>1.0.10</version> 
     31  <version>1.0.11</version> 
    3232  <minVersion>2.3</minVersion> 
    3333  <maxVersion>2.4</maxVersion> 
     
    12831283    } 
    12841284 
     1285    function clearPluginData() { 
     1286      listeners = []; 
     1287    } 
     1288 
    12851289    let listeners = []; 
    12861290 
     
    12891293      stop: stop, 
    12901294      addListener: function(func) listeners.push(func), 
    1291       removeListener: function(func) (listeners = listeners.filter(function(l) (l != func))) 
     1295      removeListener: function(func) (listeners = listeners.filter(function(l) (l != func))), 
     1296      clearPluginData: clearPluginData 
    12921297    }; 
    12931298  })(); // }}} 
     
    15241529    } 
    15251530  } 
     1531 
     1532  ChirpUserStream.clearPluginData(); 
    15261533 
    15271534  io.getRuntimeDirectories("plugin/twittperator").forEach(loadPluginFromDir(true)); 
     
    17981805  __context__.OAuth = tw; 
    17991806  __context__.ChirpUserStream = ChirpUserStream; 
     1807  __context__.loadPlugins = loadPlugins(); 
    18001808 
    18011809  loadPlugins();