2003/06/16 08:03:15
[org.ibex.core.git] / src / org / xwt / Trap.java
index b2d0c4b..ec47f2d 100644 (file)
@@ -80,8 +80,8 @@ public class Trap {
         }
 
         // find out what script is currently running
-       JS.CompiledFunction placer = Context.getContextForThread(Thread.currentThread()).getCurrentFunction();
-       if (placer == null) { Log.log(Trap.class, "placer is null"); return; }
+        JS.CompiledFunction placer = Context.getContextForThread(Thread.currentThread()).getCurrentFunction();
+        if (placer == null) { Log.log(Trap.class, "placer is null"); return; }
         String placerNodeName = placer.getSourceName();
 
         // check if this script has already placed a trap on this property
@@ -179,15 +179,15 @@ public class Trap {
                 return ret;
             }
             
-           Object ret = f.call(args);
-           
+            Object ret = f.call(args);
+            
             // autocascade if required
             if (args.length() > 0 && !isreadtrap && !tc.putCascadeHappened) cascadeFunction.call(args, f);
             
             return ret;
 
         } catch (JS.Exn e) {
-           if (Log.on) Log.log(this, e);
+            if (Log.on) Log.log(this, e);
 
         } finally {
             // restore the thread-locals