[Pkg-javascript-commits] [sockjs-client] 271/434: Cosmetic

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository sockjs-client.

commit 8846ff3fe2909cf110e30841261e40d657faf415
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Mon Jan 9 17:44:52 2012 +0000

    Cosmetic
---
 lib/utils.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/utils.js b/lib/utils.js
index ab9a923..8880ae7 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -1,9 +1,9 @@
 var utils = {};
 var random_string_chars = 'abcdefghijklmnopqrstuvwxyz0123456789_';
-utils.random_string = function(letters, max) {
+utils.random_string = function(length, max) {
     max = max || random_string_chars.length;
     var i, ret = [];
-    for(i=0; i < letters; i++) {
+    for(i=0; i < length; i++) {
         ret.push( random_string_chars.substr(Math.floor(Math.random() * max),1) );
     }
     return ret.join('');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list