|
7 | 7 | :EEE7 ,ws,`|EEL`JEEL`JEE)`JEEL zE5` E3. / [EE3 ,w. zE2` Ek .zE5^JZE3.,6EF [3
|
8 | 8 | {EEE. VEE7.EE2 AE3. EEV ZEEL{EEL ws. ; [EE1 EEEt{E3. JEELEE3. JE5LJEEF ,w,
|
9 | 9 | \EEk,,>^ JEEL,@EEF ZE5L,ZE5^ "Q3. V2`. \EEk,,J' "Q[ yE2^ VE[_zEE[,"QEL V5F
|
10 |
| - ,ss :EE7 ;EEF L,szzw.. ,., `` |
11 |
| - \E5.,E5F EE1. /; ``*4EEEZhw._ EEEL |
12 |
| - ```` `` JEEE. `"45EEEhw.,,,] |
| 10 | + ,ss :EE7 ;EEF L,szzw.. ,., `` |
| 11 | + \E5.,E5F EE1. /; ``*4EEEZhw._ EEEL |
| 12 | + ```` `` JEEE. `"45EEEhw.,,,] |
13 | 13 |
|
14 | 14 | From 2010 till ∞
|
15 | 15 | typecode-js v 0.1
|
@@ -150,6 +150,18 @@ define(['jquery'], function($) {
|
150 | 150 | window.clearTimeout(timer);
|
151 | 151 | timer = window.setTimeout(execute, delay);
|
152 | 152 | };
|
| 153 | + }, |
| 154 | + |
| 155 | + // String interpolation |
| 156 | + // var s = interpolate('Hello %', ['world']) |
| 157 | + interpolate: function(str, args) { |
| 158 | + var i; |
| 159 | + if (args) { |
| 160 | + for (i = 0; i < args.length; i += 1) { |
| 161 | + str = str.replace('%', args[i]); |
| 162 | + } |
| 163 | + } |
| 164 | + return str; |
153 | 165 | }
|
154 | 166 | };
|
155 | 167 |
|
|
0 commit comments