// You should have received a copy of the GNU General Public License\r
// along with Euphorik. If not, see <http://www.gnu.org/licenses/>.\r
\r
-/*jslint laxbreak:true */\r
-\r
\r
/**\r
* Classe permettant de formater du texte par exemple pour la substitution des liens dans les\r
\r
euphorik.Formateur.prototype.getSmilesHTML = function() {\r
var XHTML = "";\r
- this.smiles.each(function(nom) {\r
+ objectEach(this.smiles, function(nom) {\r
XHTML += "<img class=\"" + nom + "\" src=\"img/smileys/" + nom + ".gif\" alt =\"" + nom + "\" />";\r
});\r
return XHTML;\r
* moyenne sur échantillon : 234ms\r
*/\r
euphorik.Formateur.prototype.traiterSmiles = function(m) { \r
- this.smiles.each(function(nom, smiles) {\r
+ objectEach(this.smiles, function(nom, smiles) {\r
for (var i = 0; i < smiles.length; i++) {\r
m = m.replace(smiles[i], "<img src=\"img/smileys/" + nom + ".gif\" alt =\"" + nom + "\" />");\r
}\r
euphorik.Formateur.prototype.traiterPourFenetreLightBox = function(M, urlCourante) {\r
var thisFormateur = this;\r
var traitementUrl = function(url) {\r
- return "[" + thisFormateur.getShort(url)[0] + (urlCourante == url ? "*" : "") + "]";\r
+ return "[" + thisFormateur.getShort(url)[0] + (urlCourante === url ? "*" : "") + "]";\r
};\r
\r
return this.remplacerBalisesHTML(M).replace(this.regexUrl, traitementUrl);\r