- Timestamp:
- 01/29/11 19:06:12 (2 years ago)
- Files:
-
- 1 modified
-
websites/twicli/plugins/regexp.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
websites/twicli/plugins/regexp.js
r38805 r38815 26 26 // タブ切り替え処理 27 27 function switchRegexp(tab) { 28 var pickup = new Array();28 var pickup = [[],[]]; 29 29 switchTo(tab.id); 30 30 if (!tab.no_close) { … … 44 44 if (duplication[target.tw.id_str]) continue; 45 45 duplication[target.tw.id_str] = true; 46 pickup .push(target.tw);46 pickup[t].push(target.tw); 47 47 break; 48 48 } … … 51 51 } 52 52 } 53 pickup.sort(function(a,b){ return b.id - a.id }); 54 twShow2(pickup); 53 var sorted = []; 54 while (pickup[0].length > 0 || pickup[1].length > 0) { 55 if (!pickup[0][0] || pickup[1][0] && pickup[0][0].id < pickup[1][0].id) 56 sorted.push(pickup[1].shift()); 57 else 58 sorted.push(pickup[0].shift()); 59 } 60 twShow2(sorted); 55 61 callPlugins("regexp_switched", tab); 56 62 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)