Update of /cvsroot/dynapi/dynapi/src
In directory usw-pr-cvs1:/tmp/cvs-serv31054

Modified Files:
        dynapi.js 
Log Message:
Chandeg toString() to return object notation.
The simple colon in the array notation was causing problems because:

this.setHTML("<a href='javascript:"+this+".dosomething()'>...")

would turn into a broken HTML because of the - all['mylayer'] -

Index: dynapi.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/dynapi.js,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -r1.35 -r1.36
*** dynapi.js   2001/05/07 11:39:56     1.35
--- dynapi.js   2001/05/09 16:28:53     1.36
***************
*** 87,91 ****
  };
  DynObject.prototype.toString = function() {
!       return "DynObject.all['"+this.id+"']"
  };
  DynObject.prototype.getAll = function() {
--- 87,91 ----
  };
  DynObject.prototype.toString = function() {
!       return "DynObject.all."+this.id
  };
  DynObject.prototype.getAll = function() {


_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-cvs

Reply via email to