Changeset 37021

Show
Ignore:
Timestamp:
03/14/10 20:34:54 (4 years ago)
Author:
anekos
Message:

-+ 指定可能にした

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/zoom-em-all.js

    r37019 r37021  
    4040  <description>Zoom them all.</description> 
    4141  <description lang="ja">ブラウザ全体をズーム</description> 
    42   <version>1.0.0</version> 
     42  <version>1.1.0</version> 
    4343  <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> 
    4444  <license>new BSD License (Please read the source code comments of this plugin)</license> 
     
    5858let INFO = 
    5959<> 
    60   <plugin name="ZoomEmAll" version="1.0.0" 
     60  <plugin name="ZoomEmAll" version="1.1.0" 
    6161          href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/zoom-em-all.js" 
    6262          summary="Zoom or pan for whole firefox." 
     
    7777    </item> 
    7878  </plugin> 
    79   <plugin name="ZoomEmAll" version="1.0.0" 
     79  <plugin name="ZoomEmAll" version="1.1.0" 
    8080          href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/zoom-em-all.js" 
    8181          summary="ブラウザ全体をズーム" 
     
    116116    'Zoom Em All', 
    117117    function (args) { 
    118       docViewer.fullZoom = parseInt(args.literalArg || '100', 10) / 100; 
     118      let [, s, d] = args.literalArg.trim().match(/^([-+])(\d+)/) || []; 
     119      if (d) { 
     120        docViewer.fullZoom += parseInt(args.literalArg || '100', 10) / 100; 
     121      } else { 
     122        docViewer.fullZoom = parseInt(args.literalArg || '100', 10) / 100; 
     123      } 
    119124    }, 
    120125    {