use isNaN here, since NaN == NaN => false
authorJason Etheridge <jason@esilibrary.com>
Sun, 31 Jul 2011 05:08:07 +0000 (01:08 -0400)
committerJason Etheridge <jason@esilibrary.com>
Sun, 31 Jul 2011 05:08:07 +0000 (01:08 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/xul/staff_client/server/cat/spine_labels.js

index a59be61..ce28eac 100644 (file)
                     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;