From 649aac3f7cc10cc97d1209e1ae468d1f949fc90a Mon Sep 17 00:00:00 2001
From: hns <hannesw@gmail.com>
Date: Fri, 5 Jul 2002 15:07:01 +0000
Subject: [PATCH] Use the updatePrototype() method in type manager that takes
 the prototype object instead of the prototype name.

---
 src/helma/scripting/fesi/FesiEvaluator.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/helma/scripting/fesi/FesiEvaluator.java b/src/helma/scripting/fesi/FesiEvaluator.java
index 187f6cfc..3e7b89e7 100644
--- a/src/helma/scripting/fesi/FesiEvaluator.java
+++ b/src/helma/scripting/fesi/FesiEvaluator.java
@@ -262,7 +262,7 @@ public final class FesiEvaluator implements ScriptingEngine {
 	    if (info.lastUpdate > 0) {
 	        Prototype p = app.typemgr.getPrototype (info.protoName);
 	        if (p != null) {
-	            app.typemgr.updatePrototype(info.protoName);
+	            app.typemgr.updatePrototype(p);
 	            if (p.getLastUpdate () > info.lastUpdate) {
 	                evaluatePrototype(p);
 	                info.lastUpdate = p.getLastUpdate ();
@@ -484,7 +484,7 @@ public final class FesiEvaluator implements ScriptingEngine {
         if (info != null && info.lastUpdate == 0) {
             Prototype p = app.typemgr.getPrototype (protoName);
             if (p != null) {
-                app.typemgr.updatePrototype(protoName);
+                app.typemgr.updatePrototype(p);
                 if (p.getLastUpdate () > info.lastUpdate) {
                     info.lastUpdate = p.getLastUpdate ();
                     evaluatePrototype(p);