OSDN Git Service

Version 0.6.41, fix for Opera8 & NN7.2+.
[pettanr/clientJs.git] / 0.6.x / js / core / 00_X.js
index 9a0404f..eba12b0 100644 (file)
@@ -5,17 +5,18 @@ if( !window['console'] ) console = { log : function(a){
 var undefined,\r
        X = X || new Function( 'return X._shortcut && X._shortcut.apply( X._shortcut, arguments )' );\r
 \r
-X.VERSION = '0.6.18';\r
+X.VERSION = '0.6.39';\r
                \r
 X.bootTime = + new Date;\r
                \r
 X.getTime = Date.now ? new Function( 'return Date.now()' ) : new Function( 'return +new Date' );\r
                \r
 X.emptyFunction = new Function;\r
-               \r
+\r
                // defer の場合もあるので、document.readyState を見る\r
 X.inHead = (function( s ){\r
        if( !s ) return false;\r
+       if( !s.length ) return false; // Safari1.3 312.8 でerror\r
        s = s[ s.length - 1 ];\r
        // Dom0 || Dom1\r
        return ( s.parentElement || s.parentNode ).tagName.toLowerCase() === 'head';\r
@@ -77,9 +78,3 @@ X.matchTest = function( array1, array2 ){
        };\r
        return true;\r
 };\r
-\r
-       \r
-// bonus: hotfix for IE6 SP1 (bug KB823727)\r
-document.execCommand && document.execCommand( 'BackgroundImageCache', false, true );\r
-document.execCommand && document.execCommand( 'LiveResize', false, false );\r
-document.execCommand && document.execCommand( 'SizeToControl', false, false );
\ No newline at end of file