From 2e42050d7d67152699e4d56f9ee450f6cad5ae9c Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Sun, 31 Jul 2011 01:08:07 -0400 Subject: [PATCH] use isNaN here, since NaN == NaN => false Signed-off-by: Jason Etheridge --- Open-ILS/xul/staff_client/server/cat/spine_labels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f9936153a3..87c1945642 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; -- 2.11.0