X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F02_dom%2F04_XBoxModel.js;h=d96d253515489f5f34d1572c7f6dd978e4d90fb1;hb=d93e0f2faddc687d56a9528402f74ba2415a0407;hp=e2b13befd906688733033b0124a19a0adcb5d41b;hpb=9ba2ba4de00464f81805b28dfcab8814a46da5e5;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/02_dom/04_XBoxModel.js b/0.6.x/js/02_dom/04_XBoxModel.js index e2b13be..d96d253 100644 --- a/0.6.x/js/02_dom/04_XBoxModel.js +++ b/0.6.x/js/02_dom/04_XBoxModel.js @@ -65,7 +65,7 @@ X_ViewPort[ 'listenOnce' ]( X_EVENT_INIT, function(){ function X_Node_BoxModel_mesure( that, name ){ var flags = that[ '_flags' ], elm; - if( !this[ '_tag' ] || ( ( flags & X_NodeFlags_IN_TREE ) === 0 ) || ( flags & X_NodeFlags_STYLE_IS_DISPLAY_NONE ) ) return 0; + if( !that[ '_tag' ] || ( ( flags & X_NodeFlags_IN_TREE ) === 0 ) || ( flags & X_NodeFlags_STYLE_IS_DISPLAY_NONE ) ) return 0; X_Node_updateTimerID && X_Node_startUpdate(); @@ -213,12 +213,12 @@ function X_Node_y(){ }; /** - * 要素の文書内の位置。引数に xnode を与えた場合、 + * 要素の文書内の位置。 * @alias Node.prototype.offset * @return {object} { x: {number}, y : {number} } * @example node.offset(); */ -function X_Node_offset( xnode ){ +function X_Node_offset(){ var flags = this[ '_flags' ], offset = { x : 0, y : 0 }, obj, parent, elm;