Changeset 29860
- Timestamp:
- 02/10/09 21:27:58 (4 years ago)
- Files:
-
- 1 modified
-
lang/javascript/vimperator-plugins/trunk/copy.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/copy.js
r29671 r29860 9 9 <author mail="teramako@gmail.com" homepage="http://vimperator.g.hatena.ne.jp/teramako/">teramako</author> 10 10 <license>MPL 1.1/GPL 2.0/LGPL 2.1</license> 11 <version>0.7 </version>11 <version>0.7.1</version> 12 12 <detail><![CDATA[ 13 13 == Command == … … 132 132 get URL () buffer.URL, 133 133 get SEL () { 134 if (sel) 135 return sel; 136 else if (selection.rangeCount < 1) 134 var sel = ''; 135 var win = new XPCNativeWrapper(window.content.window); 136 var selection = win.getSelection(); 137 if (selection.rangeCount < 1) 137 138 return ''; 138 139 … … 143 144 }, 144 145 get HTMLSEL () { 145 if (htmlsel) 146 return sel; 147 else if (selection.rangeCount < 1) 146 var htmlsel = ''; 147 var win = new XPCNativeWrapper(window.content.window); 148 var selection = win.getSelection(); 149 if (selection.rangeCount < 1) 148 150 return ''; 149 151 … … 199 201 function replaceVariable(str){ 200 202 if (!str) return ''; 201 var win = new XPCNativeWrapper(window.content.window);202 var sel = '', htmlsel = '';203 var selection = win.getSelection();204 203 function replacer(orig, name){ //{{{ 205 204 if (name == '')
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)