|
|
1 | /* |
|
|
2 | * This file is part of Deliantra clientV. |
|
|
3 | * |
|
|
4 | * Copyright (©) 2012 Marek Olszewski <m.olszewski@wit.edu.pl> |
|
|
5 | * |
|
|
6 | * Deliantra clientV is free software: you can redistribute it and/or |
|
|
7 | * modify it under the terms of the Affero GNU General Public License as |
|
|
8 | * published by the Free Software Foundation, either version 3 of the |
|
|
9 | * License, or (at your option) any later version. |
|
|
10 | * |
|
|
11 | * This program is distributed in the hope that it will be useful, |
|
|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
14 | * GNU General Public License for more details. |
|
|
15 | * |
|
|
16 | * You should have received a copy of the Affero GNU General Public Licens |
|
|
17 | * and the GNU General Public License along with this program. If not, see |
|
|
18 | * <http://www.gnu.org/licenses/>. |
|
|
19 | * |
|
|
20 | * The authors can be reached via e-mail to <support@deliantra.net> |
|
|
21 | */ |
|
|
22 | |
1 | String.prototype.each = function (f,p){ |
23 | String.prototype.each = function (f,p){ |
2 | for (var i=0;i<this.length;++i){ |
24 | for (var i=0;i<this.length;++i){ |
3 | f.apply(this,[this[i],i,p]); |
25 | f.apply(this,[this[i],i,p]); |
4 | } |
26 | } |
5 | }; |
27 | }; |