OSDN Git Service

Version 0.6.221, Update the X.TextRange.
[pettanr/clientJs.git] / 0.6.x / js / 01_core / 21_XViewPort.js
index 86682a8..54a07fe 100644 (file)
@@ -49,10 +49,9 @@ X_ViewPort = X_Class_override(
                                        //https://developer.mozilla.org/ja/docs/Web/JavaScript/A_re-introduction_to_JavaScript
                                        //Firefox 1.5 の bfcache が無効になりますので、他に理由がない限り Firefox では unload リスナを登録するべきではないことに注意してください。
                                        X_ViewPort[ 'dispatch' ]( X_EVENT_UNLOAD );
-                               //alert('unload');
+                                       //alert('unload');
                                        X_ViewPort_document[ 'kill' ]();
                                        X_ViewPort[ 'kill' ]();
-                                       
                                        //X_System[ 'dispatch' ]( X_EVENT_SHUT_DOWN );
                                        break;
 
@@ -75,8 +74,11 @@ X_ViewPort = X_Class_override(
        
                                case 'blur' :
                                case 'focusout' :
-                                       // TODO ie5...
-                                       if( 5.5 < X_UA[ 'IE' ] && X_UA[ 'IE' ] < 9 ){
+                                       if( ( 5.5 < X_UA[ 'IE' ] && X_UA[ 'IE' ] < 9 )
+                                                ||
+                                                // TODO ie5... activeElement に障るとエラーになるため VBS 経由で activeElement に触り安全確認する(未確認)
+                                                ( 5 <= X_UA[ 'IE' ] && X_UA[ 'IE' ] < 5.5 && !window[ 'vbs_testAE' ]() )
+                                        ){
                                                xnode = X_Node_getXNode( document.activeElement );
                                                if( xnode ){
                                                        xnode[ 'listenOnce' ]( [ 'focus', 'blur' ], X_ViewPort_detectFocusForIE );