cosmetic changes

This commit is contained in:
rolux 2013-11-11 14:17:39 +01:00
parent 85ef28078b
commit 3cbacd85ff

View file

@ -189,8 +189,7 @@
true true
@*/ @*/
Ox.encodeEmailAddress = function(address, text) { Ox.encodeEmailAddress = function(address, text) {
text = text || address; var parts = ['mailto:' + address, text || address].map(function(part) {
var parts = ['mailto:' + address, text].map(function(part) {
return Ox.map(part, function(char) { return Ox.map(part, function(char) {
var code = char.charCodeAt(0); var code = char.charCodeAt(0);
return char == ':' ? ':' return char == ':' ? ':'