|
From: Raymond I. <xw...@us...> - 2003-03-10 03:31:25
|
Update of /cvsroot/dynapi/dynapi3x/src/util
In directory sc8-pr-cvs1:/tmp/cvs-serv9083/src/util
Modified Files:
datasource.js ioelement.js ioelement.soda.js
Log Message:
remove oncreate/onprecreate events
Index: datasource.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi3x/src/util/datasource.js,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** datasource.js 10 Feb 2003 22:36:00 -0000 1.1.1.1
--- datasource.js 10 Mar 2003 03:31:20 -0000 1.2
***************
*** 111,116 ****
p._unboundObject = function(o){
if(!o._clsid) return;
! delete(this.dataobjects[o._clsid]);
! delete(DataSource.allDataObjects[o._clsid]);
};
--- 111,116 ----
p._unboundObject = function(o){
if(!o._clsid) return;
! delete this.dataobjects[o._clsid];
! delete DataSource.allDataObjects[o._clsid];
};
Index: ioelement.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi3x/src/util/ioelement.js,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** ioelement.js 10 Feb 2003 22:36:00 -0000 1.1.1.1
--- ioelement.js 10 Mar 2003 03:31:20 -0000 1.2
***************
*** 47,98 ****
}
! this.addEventListener(IOElement.events);
};
! IOElement.events = {
! onprecreate : function(e) {
! var t,r=['*'],html=[],o = e.getSource();
! if (o._hidden) {
! if (o._winXFrames) html = ['<frame src="about:blank" name="',o._elmID,'" scrolling="none">'];
! else if (dynapi.ua.ns4) html = ['<ilayer name="',o._elmID,'" visibility="hide" width=0 height=0></ilayer>'];
! else html = ['<iframe name="',o._elmID,'" style="width:0px; height:0px; visibility:hidden"></iframe>'];
! t=html.join('')
! o._elmThread=o._elmID;
! o._elmBusy[o._elmID]=false;
! for(var i=1;i<o._maxThreads;i++){ // setup additional threads
! r[i]='*';// for XFrames
! html[1]=o._elmID+'x'+i;
! t+=html.join('');
! o._elmBusy[o._elmID+'x'+i]=false; // flag as not busy
! }
! // java-sync frame
! html[1]=o._elmID+'Sync';
t+=html.join('');
! }else{
! if (o._winXFrames) t = '<frame src="about:blank" name="',o._elmID,'" scrolling="none">';
! else if (dynapi.ua.ns4) t = '<layer width='+o.w+' height='+o.h+' name="'+o._elmID+'" visibility="inherit"></ilayer>';
! else t = '<iframe name="'+o._elmID+'" width='+o.w+' height='+o.h+' scrolling="no" frameborder="no" marginwidth=0 marginheight=0 style="overflow:hidden;"></iframe>';
! o._elmThread=o._elmID; o._elmBusy[o._elmID]=false;
}
!
! if (!o._winXFrames) o.html=t;
! else{
! var src='<html><head><title>DynAPI XFrame</title></head>\n'
! +'<frameset rows="'+r.join(',')+',0">\n'+t
! +'</frameset></html>\n'
! o._winXFrames.document.open();
! o._winXFrames.document.write(src);
! o._winXFrames.document.close();
! o._winXFrames.top.dynapi=dynapi;
! o._winXFrames.top.IOElement=IOElement;
! }
! },
! oncreate : function(e) {
! var o = e.getSource();
! if (o._SyncFn) window.setTimeout(o+'._initSync()',100);
! if (o.getScope()) {
! if (o._requestList.length>0) {
! o._setRequestTimeout(100);
! }
}
}
--- 47,96 ----
}
! this.onPreCreate(IOElement.fnPrecreate);
! this.onCreate(IOElement.fnCreate);
};
! IOElement.fnPrecreate = function() {
! var t,r=['*'],html=[];
! if (this._hidden) {
! if (this._winXFrames) html = ['<frame src="about:blank" name="',o._elmID,'" scrolling="none">'];
! else if (dynapi.ua.ns4) html = ['<ilayer name="',this._elmID,'" visibility="hide" width=0 height=0></ilayer>'];
! else html = ['<iframe name="',this._elmID,'" style="width:0px; height:0px; visibility:hidden"></iframe>'];
! t=html.join('')
! this._elmThread=this._elmID;
! this._elmBusy[this._elmID]=false;
! for(var i=1;i<this._maxThreads;i++){ // setup additional threads
! r[i]='*';// for XFrames
! html[1]=this._elmID+'x'+i;
t+=html.join('');
! this._elmBusy[this._elmID+'x'+i]=false; // flag as not busy
}
! // java-sync frame
! html[1]=this._elmID+'Sync';
! t+=html.join('');
! }else{
! if (this._winXFrames) t = '<frame src="about:blank" name="',this._elmID,'" scrolling="none">';
! else if (dynapi.ua.ns4) t = '<layer width='+this.w+' height='+this.h+' name="'+this._elmID+'" visibility="inherit"></ilayer>';
! else t = '<iframe name="'+this._elmID+'" width='+this.w+' height='+this.h+' scrolling="no" frameborder="no" marginwidth=0 marginheight=0 style="overflow:hidden;"></iframe>';
! this._elmThread=this._elmID; this._elmBusy[this._elmID]=false;
! }
!
! if (!this._winXFrames) this.html=t;
! else{
! var src='<html><head><title>DynAPI XFrame</title></head>\n'
! +'<frameset rows="'+r.join(',')+',0">\n'+t
! +'</frameset></html>\n'
! this._winXFrames.document.open();
! this._winXFrames.document.write(src);
! this._winXFrames.document.close();
! this._winXFrames.top.dynapi=dynapi;
! this._winXFrames.top.IOElement=IOElement;
! }
! };
! IOElement.fnCreate = function() {
! if (this._SyncFn) window.setTimeout(o+'._initSync()',100);
! if (this.getScope()) {
! if (this._requestList.length>0) {
! this._setRequestTimeout(100);
}
}
Index: ioelement.soda.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi3x/src/util/ioelement.soda.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** ioelement.soda.js 9 Mar 2003 22:21:47 -0000 1.2
--- ioelement.soda.js 10 Mar 2003 03:31:21 -0000 1.3
***************
*** 106,110 ****
s=(!et && c && (c.logout||c.login)=='ok')? true:false; // web service must return a login/logout state
if(s && c.logout) {
! delete(o._src[o._name]);
o.call=dynapi.functions.Null;
}else if(s && c.login){
--- 106,110 ----
s=(!et && c && (c.logout||c.login)=='ok')? true:false; // web service must return a login/logout state
if(s && c.logout) {
! delete o._src[o._name];
o.call=dynapi.functions.Null;
}else if(s && c.login){
|