added a field on each object called classname to return the object hint
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 31 Mar 2005 17:39:03 +0000 (17:39 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 31 Mar 2005 17:39:03 +0000 (17:39 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@257 9efc2488-bf62-4759-914b-345cdb29e865

src/extras/fieldmapper.pl

index 0c0aa1f..bd90d0b 100644 (file)
@@ -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}}) {