Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/api In directory usw-pr-cvs1:/tmp/cvs-serv13248 Modified Files: events.js dynlayer.js Log Message: Fixed NS4.0 complaining about functions not always returning a value Index: events.js =================================================================== RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/events.js,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** events.js 2001/02/06 18:38:36 1.17 --- events.js 2001/02/07 18:13:58 1.18 *************** *** 76,80 **** if (!this.eventListeners) this.eventListeners=[]; this.hasEventListeners=true; ! if (!this.created) return false; var elm=this.elm; if (is.ns4) elm.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP | Event.CLICK | Event.DBLCLICK); --- 76,80 ---- if (!this.eventListeners) this.eventListeners=[]; this.hasEventListeners=true; ! if (!this.created) return; var elm=this.elm; if (is.ns4) elm.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP | Event.CLICK | Event.DBLCLICK); Index: dynlayer.js =================================================================== RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/dynlayer.js,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -r1.22 -r1.23 *** dynlayer.js 2001/02/07 16:49:10 1.22 --- dynlayer.js 2001/02/07 18:13:58 1.23 *************** *** 341,350 **** }; DynLayer.prototype.getPageX=function() { ! if (this.css==null) return; if (is.ns4) return this.css.pageX; else return (this.isChild)? this.parent.getPageX()+this.x : this.x; }; DynLayer.prototype.getPageY=function() { ! if (this.css==null) return; if (is.ns4) return this.css.pageY; else return (this.isChild)? this.parent.getPageY()+this.y : this.y; --- 341,350 ---- }; DynLayer.prototype.getPageX=function() { ! if (this.css==null) return null; if (is.ns4) return this.css.pageX; else return (this.isChild)? this.parent.getPageX()+this.x : this.x; }; DynLayer.prototype.getPageY=function() { ! if (this.css==null) return null; if (is.ns4) return this.css.pageY; else return (this.isChild)? this.parent.getPageY()+this.y : this.y; _______________________________________________ Dynapi-CVS mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-cvs