From: Jack Allnutt Date: Thu, 26 Sep 2013 19:23:53 +0000 (+0100) Subject: Rename j_loop to nick_character_loop and j_char to nick_char X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=03bb43014f40b4918a0ee7573d6cc3058b1e68a9;p=KiwiIRC.git Rename j_loop to nick_character_loop and j_char to nick_char --- diff --git a/client/assets/src/models/member.js b/client/assets/src/models/member.js index f1bc61b..588108d 100644 --- a/client/assets/src/models/member.js +++ b/client/assets/src/models/member.js @@ -76,17 +76,17 @@ _kiwi.model.Member = Backbone.Model.extend({ return prefix; }, stripPrefix: function (nick) { - var tmp = nick, i, j, k, j_char; + var tmp = nick, i, j, k, nick_char; var user_prefixes = _kiwi.gateway.get('user_prefixes'); i = 0; - j_loop: + nick_character_loop: for (j = 0; j < nick.length; j++) { - j_char = nick.charAt(j); + nick_char = nick.charAt(j); for (k = 0; k < user_prefixes.length; k++) { - if (j_char === user_prefixes[k].symbol) { + if (nick_char === user_prefixes[k].symbol) { i++; - continue j_loop; + continue nick_character_loop; } } break;