Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /naja/src/resources/

naja
Discussion topic

Back to topic list

CVS update: /naja/src/resources/

Reply

Author pablo_cabrera
Full name Pablo J. Cabrera Munoz
Date 2006-03-02 18:26:07 PST
Message User: pablo_cabrera
Date: 2006/03/02 18:26:07

Modified:
   naja/src/resources/OOModel.js

Log:
 Bugfix: context handling was faulty...

File Changes:

Directory: /naja/src/resources/
===============================

File [changed]: OOModel.js
Url: http://naja.tigris.o​rg/source/browse/naj​a/src/resources/OOMo​del.js?r1=1.5&r2​=1.6
Delta lines: +54 -54
---------------------
--- OOModel.js 20 Feb 2006 03:16:15 -0000 1.5
+++ OOModel.js 3 Mar 2006 02:26:04 -0000 1.6
@@ -126,7 +126,7 @@
         methodName = methods[i];
         if (methodName != "constructor" && pObject[methodName].$wrapper == undefined) {
             pObject[methodName+"$body"] = pObject[methodName];
- pObject[methodName] = new Function("$caller = $nj.context[($nj.context.length - 1)]; $this = $nj.userObjects["+p​Object.$objectId+"]​; var functionReturn = $this."+methodName+​"$body.apply(this, arguments); void($nj.context.pop()); $this = $nj.context[($nj.context.length - 1)]; $caller = $nj.context[($nj.context.length - 2)]; return functionReturn;");
+ pObject[methodName] = new Function("$caller = $nj.context[($nj.context.length - 1)]; $this = $nj.userObjects["+p​Object.$objectId+"]​; $nj.context.push($this); var functionReturn = $this."+methodName+​"$body.apply(this, arguments); void($nj.context.pop()); $this = $nj.context[($nj.context.length - 1)]; $caller = $nj.context[($nj.context.length - 2)]; return functionReturn;");
             pObject[methodName].$wrapper = true;
         }
     }

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /naja/src/resources/ pablo_cabrera Pablo J. Cabrera Munoz 2006-03-02 18:26:07 PST
Messages per page: