[Phpfreechat-svn] SF.net SVN: phpfreechat: [1178] trunk/data/public/js
Status: Beta
Brought to you by:
kerphi
|
From: <gpi...@us...> - 2007-09-06 14:30:25
|
Revision: 1178
http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1178&view=rev
Author: gpinzone
Date: 2007-09-06 07:30:28 -0700 (Thu, 06 Sep 2007)
Log Message:
-----------
Made variable and function names clearer.
Modified Paths:
--------------
trunk/data/public/js/pfcclient.js
trunk/data/public/js/pfcresource.js
Modified: trunk/data/public/js/pfcclient.js
===================================================================
--- trunk/data/public/js/pfcclient.js 2007-09-06 14:11:45 UTC (rev 1177)
+++ trunk/data/public/js/pfcclient.js 2007-09-06 14:30:28 UTC (rev 1178)
@@ -1460,7 +1460,7 @@
// try to parse smileys
var smileys = this.res.getSmileyHash();
- var sl = this.res.getSmileyKeys();
+ var sl = this.res.getSmileyKeysSorted();
for(var i = 0; i < sl.length; i++)
{
// We don't want to replace smiley strings inside of tags.
Modified: trunk/data/public/js/pfcresource.js
===================================================================
--- trunk/data/public/js/pfcresource.js 2007-09-06 14:11:45 UTC (rev 1177)
+++ trunk/data/public/js/pfcresource.js 2007-09-06 14:30:28 UTC (rev 1178)
@@ -12,7 +12,7 @@
this.fileurl = $H();
this.smileys = $H();
this.smileysreverse = $H();
- this.smileyskeys = new Array();
+ this.smileyskeyssorted = new Array();
},
setLabel: function(key, value)
@@ -49,9 +49,9 @@
{
this.smileys[key] = value;
this.smileysreverse[value] = key;
- this.smileyskeys.push(key);
+ this.smileyskeyssorted.push(key);
// Sort keys by longest to shortest. This prevents a smiley like :) from being used on >:)
- this.smileyskeys = this.smileyskeys.sort(function (a,b){return (b.unescapeHTML().length - a.unescapeHTML().length);})
+ this.smileyskeyssorted.sort(function (a,b){return (b.unescapeHTML().length - a.unescapeHTML().length);})
},
getSmiley: function(key)
{
@@ -68,9 +68,9 @@
{
return this.smileysreverse;
},
- getSmileyKeys: function()
+ getSmileyKeysSorted: function()
{
- return this.smileyskeys;
+ return this.smileyskeyssorted;
},
};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|