X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F20_ui%2F17_Text.js;h=ceb896c67158e46c3bc0e5688373ed17e8b5e048;hb=eedd028ba64be2ea0828cf686f1d0ec3bb4010d5;hp=4ecc8b8601e8a39c4dab3b7b5df57d7723aeb826;hpb=94c39d10a21853703c90cb09b1e82bd7a2d8923e;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/20_ui/17_Text.js b/0.6.x/js/20_ui/17_Text.js index 4ecc8b8..ceb896c 100644 --- a/0.6.x/js/20_ui/17_Text.js +++ b/0.6.x/js/20_ui/17_Text.js @@ -1,18 +1,18 @@ X.UI._Text = X.UI._AbstractUINode.inherits( '_Text', - X.Class.PRIVATE_DATA, + X_Class.PRIVATE_DATA, { content : null, Constructor : function( content ){ - if( !( this.User.instanceOf( X.UI.Text ) ) ){ + if( !( this.User[ 'instanceOf' ]( X.UI.Text ) ) ){ alert( 'Text を継承したインスタンスだけが _Text のオーナーになれます' ); }; this.xnode = X_Doc_create( 'div' ); - if( X.Type.isString( content ) && content ){ + if( X_Type_isString( content ) && content ){ this.content = content; - this.xnode.text( this.content ); + this.xnode[ 'text' ]( this.content ); this.dirty = X.UI.Dirty.CONTENT; }; } @@ -21,17 +21,17 @@ X.UI._Text = X.UI._AbstractUINode.inherits( X.UI.Text = X.UI.AbstractUINode.inherits( 'Text', - X.Class.SUPER_ACCESS, + X_Class.SUPER_ACCESS, X.UI._Text, { Constructor : function( opt_content, opt_cssObj ){ X_Class_newPrivate( this, opt_content ); - X.Type.isObject( opt_cssObj = opt_cssObj || opt_content ) && this.attr( opt_cssObj ); + X_Type_isObject( opt_cssObj = opt_cssObj || opt_content ) && this[ 'attr' ]( opt_cssObj ); }, content : function( v ){ var data = X_Class_getPrivate( this ); if( data.content !== v ){ - data.xnode && data.xnode.text( v ); + data.xnode && data.xnode[ 'text' ]( v ); data.rootData.reserveCalc(); if( data.dirty < X.UI.Dirty.CONTENT ) data.dirty = X.UI.Dirty.CONTENT; };