Skip to content
Extraits de code Groupes Projets
Valider 51c0d0a7 rédigé par renato's avatar renato
Parcourir les fichiers

avoid a loop when the keys option is an empty string

parent 79052fef
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
SEhighlight.options = $.extend({exact:"exact",style_name:'hilite',style_name_suffix:true},options); SEhighlight.options = $.extend({exact:"exact",style_name:'hilite',style_name_suffix:true},options);
if(options.engines) SEhighlight.engines.unshift(options.engines); if(options.engines) SEhighlight.engines.unshift(options.engines);
var q = (options.keys?options.keys.split(/[\s,\+\.]+/):false) || SEhighlight.decodeURL(ref,SEhighlight.engines); var q = options.keys!=undefined?options.keys.split(/[\s,\+\.]+/):SEhighlight.decodeURL(ref,SEhighlight.engines);
if(q) { if(q && q.join("")) {
SEhighlight.buildReplaceTools(q); SEhighlight.buildReplaceTools(q);
return this.each(function(){ return this.each(function(){
var el = this; var el = this;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter