cosmetic changes
This commit is contained in:
parent
85ef28078b
commit
3cbacd85ff
1 changed files with 1 additions and 2 deletions
|
@ -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 == ':' ? ':'
|
||||||
|
|
Loading…
Reference in a new issue