X-Git-Url: http://git.osdn.jp/view?p=pettanr%2FclientJs.git;a=blobdiff_plain;f=0.6.x%2Fjs%2F02_dom%2F30_XTextRange.js;fp=0.6.x%2Fjs%2F02_dom%2F30_XTextRange.js;h=d6f88374229fd995cece6b10627efab37fa3bf6a;hp=80ddf4c1000fca38cb89e8322b2f0f8fffc1fffa;hb=4e4ab3be10850546063d4a4b93250ed142bb8cd2;hpb=b05bf97c1b3b1720e73af54017a48291a364d394 diff --git a/0.6.x/js/02_dom/30_XTextRange.js b/0.6.x/js/02_dom/30_XTextRange.js index 80ddf4c..d6f8837 100644 --- a/0.6.x/js/02_dom/30_XTextRange.js +++ b/0.6.x/js/02_dom/30_XTextRange.js @@ -131,11 +131,11 @@ function X_TextRange_getRawRange( tr ){ range.selectNodeContents( text ); // selectNodeContents は TextNode のみ?? Firefox l = text.data.length; - for( j = 0, x = tr.v1, y = tr.v2; j < l; ++j ) { + for( j = 0, x = tr.v1, y = tr.v2; j < l; ++j ){ if( range ){ range.setStart( text, j ); range.setEnd( text, j + 1 ); - rect = range.getBoundingClientRect(); + rect = range.getBoundingClientRect(); }; if( rect.left <= x && x <= rect.right && rect.top <= y && y <= rect.bottom ){ return { @@ -146,7 +146,7 @@ function X_TextRange_getRawRange( tr ){ }; }; }; - offset += l; + offset += l; }; range = null; } else { @@ -186,7 +186,7 @@ function X_TextRange_getRect(){ 'width' : rect.width, 'height' : rect.height }; - //range.detach && range.detach(); + //range.detach && range.detach(); } else { ret = { 'x' : result.boundingLeft,