From 41d20b1a8bd1258d57e6fe208ffffe2658622643 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 10 Nov 2005 23:54:11 +0000 Subject: [PATCH 1/1] fixed masked variable error git-svn-id: svn://svn.open-ils.org/ILS/trunk@2001 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/common/js/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/opac/common/js/utils.js b/Open-ILS/web/opac/common/js/utils.js index a7ade5c1e9..9addb0077d 100644 --- a/Open-ILS/web/opac/common/js/utils.js +++ b/Open-ILS/web/opac/common/js/utils.js @@ -139,7 +139,7 @@ function text(t) { return document.createTextNode(t); } -function elem(name, attrs, text) { +function elem(name, attrs, txt) { var e = document.createElement(name); if (attrs) { for (key in attrs) { @@ -147,7 +147,7 @@ function elem(name, attrs, text) { else e.setAttribute(key, attrs[key]); } } - if (text) e.appendChild(text(text)); + if (txt) e.appendChild(text(txt)); return e; } -- 2.43.2