Update of /cvsroot/dynapi/dynapi/tests
In directory usw-pr-cvs1:/tmp/cvs-serv24872
Modified Files:
multiple_precreate_events.html
Log Message:
updated to reflect this bug being fixed
Index: multiple_precreate_events.html
===================================================================
RCS file: /cvsroot/dynapi/dynapi/tests/multiple_precreate_events.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** multiple_precreate_events.html 2001/11/05 11:30:06 1.1
--- multiple_precreate_events.html 2001/11/05 18:30:36 1.2
***************
*** 30,34 ****
EListener1.onprecreate = function(e) {alert("In onprecreate");};
EListener1.oncreate = function(e) {alert("In oncreate");};
! layer3.addEventListener(EListener1);
layer1.addChild(layer2);
--- 30,34 ----
EListener1.onprecreate = function(e) {alert("In onprecreate");};
EListener1.oncreate = function(e) {alert("In oncreate");};
! layer1.addEventListener(EListener1);
layer1.addChild(layer2);
***************
*** 36,39 ****
--- 36,40 ----
DynAPI.document.addChild(layer1);
+
}
***************
*** 54,58 ****
The yellow layer has an eventlistener for oncreate, and for onprecreate.<br />
Normally each should be called once, but onprecreate is being called once for each time the layer is nested.<br />
!
</body>
</html>
--- 55,61 ----
The yellow layer has an eventlistener for oncreate, and for onprecreate.<br />
Normally each should be called once, but onprecreate is being called once for each time the layer is nested.<br />
! <b>Update 5/Nov/2001 :</b><br />
! This issue has been resolved by adding a test to DynObject.flagPrecreate as suggested my Michael Pemberton, so flagPrecreate is only run the first time.<br />
! This might not be the best definite solution, but at least clears up this bug for the time-being.<br />
</body>
</html>
|