From 84a547506bb7e3d555f2ecf8a18cf2b26eac2ecb Mon Sep 17 00:00:00 2001 From: phamt Date: Thu, 17 Feb 2011 15:17:00 +0000 Subject: [PATCH] Changed argument name since Google compiler has an issue with using a reserved name. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8884 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/configure/configure.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-UI/js/configure/configure.js b/xCAT-UI/js/configure/configure.js index ed23d8a59..b468084a3 100644 --- a/xCAT-UI/js/configure/configure.js +++ b/xCAT-UI/js/configure/configure.js @@ -486,10 +486,10 @@ function deleteRow(obj) { /** * Count the number of occurrences of a specific character in a string * - * @param char + * @param c * Character to count * @return The number of occurrences */ -String.prototype.count = function(char) { - return (this.length - this.replace(new RegExp(char, "g"), '').length)/char.length; +String.prototype.count = function(c) { + return (this.length - this.replace(new RegExp(c, 'g'), '').length)/c.length; }; \ No newline at end of file