Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/api
In directory usw-pr-cvs1:/tmp/cvs-serv27345

Modified Files:
        dynlayer.js 
Log Message:
Recycled layers should now lose bgcolor and image properties when used again.

Index: dynlayer.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/dynlayer.js,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -r1.54 -r1.55
*** dynlayer.js 2001/06/08 02:43:16     1.54
--- dynlayer.js 2001/06/08 14:54:24     1.55
***************
*** 13,18 ****
        this.css=null;
  
!       var a=arguments
!       if(a[0]) this.setID(a[0])
        this.x=a[1]||0;
        this.y=a[2]||0;
--- 13,18 ----
        this.css=null;
  
!       var a=arguments;
!       if(a[0]) this.setID(a[0]);
        this.x=a[1]||0;
        this.y=a[2]||0;
***************
*** 49,53 ****
                var recycled=this.parent.doc.recycled;
                if (recycled && recycled.length>0 && !DynLayer.recreate) {
!                       this.elm=recycled[0];
                        Methods.removeFromArray(recycled,recycled[0]);
                } else {
--- 49,53 ----
                var recycled=this.parent.doc.recycled;
                if (recycled && recycled.length>0 && !DynLayer.recreate) {
!               this.elm=recycled[0];
                        Methods.removeFromArray(recycled,recycled[0]);
                } else {
***************
*** 122,127 ****
                if (!this.parent.doc.recycled) this.parent.doc.recycled=[];
                this.parent.doc.recycled[this.parent.doc.recycled.length]=this.elm;
!               this.elm.visibility="hide"; 
        }
        this.elm = null;
        this.doc = null;
--- 122,134 ----
                if (!this.parent.doc.recycled) this.parent.doc.recycled=[];
                this.parent.doc.recycled[this.parent.doc.recycled.length]=this.elm;
!               this.elm.visibility="hide";
        }
+       this.bgImage = null;
+       this.bgColor = null;
+       this.html = null;
+       this.x = null;
+       this.y = null;
+       this.w = null;
+       this.h = null;
        this.elm = null;
        this.doc = null;


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

Reply via email to