From: Jason Etheridge Date: Sun, 31 Jul 2011 05:08:07 +0000 (-0400) Subject: use isNaN here, since NaN == NaN => false X-Git-Tag: sprint4-merge-nov22~5320 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3a9c09f5bd86d699691953cf97ef115302a50f2b;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 a59be61014..ce28eacb45 100644 --- a/Open-ILS/xul/staff_client/server/cat/spine_labels.js +++ b/Open-ILS/xul/staff_client/server/cat/spine_labels.js @@ -519,7 +519,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;