From: Jason Etheridge Date: Sun, 31 Jul 2011 05:08:07 +0000 (-0400) Subject: use isNaN here, since NaN == NaN => false X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=29f1dabdf706d00ef1e1b90051c933dd58f4e9bd;p=working%2FEvergreen.git use isNaN here, since NaN == NaN => false Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/xul/staff_client/server/cat/spine_labels.js b/Open-ILS/xul/staff_client/server/cat/spine_labels.js index c90734a25e..fb2eccfd08 100644 --- a/Open-ILS/xul/staff_client/server/cat/spine_labels.js +++ b/Open-ILS/xul/staff_client/server/cat/spine_labels.js @@ -507,7 +507,7 @@ if (!lm) { lm = g.data.hash.aous['cat.spine.line.margin'] || 0; } - var mm = Number($('mm').value); if (mm == NaN) mm = 2; /* middle margin */ + var mm = Number($('mm').value); if (isNaN(mm)) mm = 2; /* middle margin */ var lw = Number($('lw').value); /* spine label width */ if (!lw) { lw = g.data.hash.aous['cat.spine.line.width'] || 8;