From 1c21ef42c952a4d07614c078de47597dbffe0a96 Mon Sep 17 00:00:00 2001 From: miker Date: Fri, 4 Mar 2005 19:46:49 +0000 Subject: [PATCH] can not call a javascript variable "new"... arg git-svn-id: svn://svn.open-ils.org/ILS/trunk@221 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Utils/Fieldmapper.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/Fieldmapper.pm b/Open-ILS/src/perlmods/OpenILS/Utils/Fieldmapper.pm index c4d9128fbd..a576ddc42c 100644 --- a/Open-ILS/src/perlmods/OpenILS/Utils/Fieldmapper.pm +++ b/Open-ILS/src/perlmods/OpenILS/Utils/Fieldmapper.pm @@ -96,7 +96,7 @@ sub javascript { my $output = <<" JS"; -function $js_class (thing) { var new = thing; if (!new) { new = []; } return new; } +function $js_class (thing) { var new_thing = thing; if (!new_thing) { new_thing = []; } return new_thing; } $js_class.prototype.class_name = function () { return "$js_class"; } JS -- 2.43.2