From: erickson Date: Thu, 31 Mar 2005 17:39:03 +0000 (+0000) Subject: added a field on each object called classname to return the object hint X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=dec359b4ede08ac1d2b56f4e4fd56f1182fad69f;p=opensrf%2Fbjwebb.git added a field on each object called classname to return the object hint git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@257 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/extras/fieldmapper.pl b/src/extras/fieldmapper.pl index 0c0aa1f..bd90d0b 100644 --- a/src/extras/fieldmapper.pl +++ b/src/extras/fieldmapper.pl @@ -32,9 +32,8 @@ function $short_name(array) { else { this.array = []; } } -$short_name.prototype._is_array = function() { - return true; -} +$short_name.classname = "$short_name"; + JS for my $field (keys %{$map->{$object}->{fields}}) {