cleaner return

This commit is contained in:
Zixaphir 2013-06-01 06:27:21 -07:00
parent 4418a8fa45
commit 3d2fc98544
4 changed files with 8 additions and 10 deletions

View File

@ -10934,10 +10934,9 @@
el = this.el;
if (!Conf['Mascots'] || (Conf['Hide Mascots on Catalog'] && g.VIEW === 'catalog')) {
if (el) {
return el.src = "";
} else {
return null;
el.src = "";
}
return;
}
if (mascot.position === 'bottom' && Conf['Mascot Position'] === 'default') {
$.rmClass(doc, 'mascot-position-default');

View File

@ -10928,10 +10928,9 @@
el = this.el;
if (!Conf['Mascots'] || (Conf['Hide Mascots on Catalog'] && g.VIEW === 'catalog')) {
if (el) {
return el.src = "";
} else {
return null;
el.src = "";
}
return;
}
if (mascot.position === 'bottom' && Conf['Mascot Position'] === 'default') {
$.rmClass(doc, 'mascot-position-default');

View File

@ -10911,10 +10911,9 @@
el = this.el;
if (!Conf['Mascots'] || (Conf['Hide Mascots on Catalog'] && g.VIEW === 'catalog')) {
if (el) {
return el.src = "";
} else {
return null;
el.src = "";
}
return;
}
if (mascot.position === 'bottom' && Conf['Mascot Position'] === 'default') {
$.rmClass(doc, 'mascot-position-default');

View File

@ -12,7 +12,8 @@ MascotTools =
el = @el
if !Conf['Mascots'] or (Conf['Hide Mascots on Catalog'] and g.VIEW is 'catalog')
return if el then el.src = "" else null
if el then el.src = ""
return
if mascot.position is 'bottom' and Conf['Mascot Position'] is 'default'
$.rmClass doc, 'mascot-position-default'