OSDN Git Service
(root)
/
pettanr
/
clientJs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 0.6.199, bug fixes X.Node.Anime & X.Util.Window & X.Net.OAuth2 & X.UI.*.
[pettanr/clientJs.git]
/
0.6.x
/
js
/
02_dom
/
05_XNodeAttr.js
diff --git
a/0.6.x/js/02_dom/05_XNodeAttr.js
b/0.6.x/js/02_dom/05_XNodeAttr.js
index
9a33207
..
6dcd5c7
100644
(file)
--- a/
0.6.x/js/02_dom/05_XNodeAttr.js
+++ b/
0.6.x/js/02_dom/05_XNodeAttr.js
@@
-86,7
+86,7
@@
function X_Node_Attr_objToAttrText( that, skipNetworkForElmCreation ){
delete that[ '_newAttrs' ];
\r
// このあとで _newAttr にネットワーク系の属性を控える, attrText には加えない
\r
} else {
\r
delete that[ '_newAttrs' ];
\r
// このあとで _newAttr にネットワーク系の属性を控える, attrText には加えない
\r
} else {
\r
- that[ '_flags' ] &= ~X_Node
_State.
OLD_ATTRTEXT;
\r
+ that[ '_flags' ] &= ~X_Node
Flags_
OLD_ATTRTEXT;
\r
// 完全な attrText
\r
};
\r
\r
// 完全な attrText
\r
};
\r
\r
@@
-161,7
+161,7
@@
function X_Node_Attr_objToAttrText( that, skipNetworkForElmCreation ){
* // setter - 2
\r
* node.attr( 'src', url );
\r
*/
\r
* // setter - 2
\r
* node.attr( 'src', url );
\r
*/
\r
-
Node.prototype[ 'attr' ] = function
( nameOrObj /* v */ ){
\r
+
function X_Node_attr
( nameOrObj /* v */ ){
\r
var attrs = this[ '_attrs' ], newAttrs, f, k, elm, v;
\r
\r
if( !this[ '_tag' ] ) return this;
\r
var attrs = this[ '_attrs' ], newAttrs, f, k, elm, v;
\r
\r
if( !this[ '_tag' ] ) return this;
\r
@@
-176,8
+176,8
@@
Node.prototype[ 'attr' ] = function( nameOrObj /* v */ ){
};
\r
if( f ){
\r
delete this[ '_attrText' ];
\r
};
\r
if( f ){
\r
delete this[ '_attrText' ];
\r
- this[ '_flags' ] |= X_Node
_State.DIRTY_ATTR | X_Node_State.
OLD_ATTRTEXT;
\r
- this[ '_flags' ] & X_Node
_State.
IN_TREE && X_Node_reserveUpdate();
\r
+ this[ '_flags' ] |= X_Node
Flags_DIRTY_ATTR | X_NodeFlags_
OLD_ATTRTEXT;
\r
+ this[ '_flags' ] & X_Node
Flags_
IN_TREE && X_Node_reserveUpdate();
\r
};
\r
return this;
\r
} else
\r
};
\r
return this;
\r
} else
\r
@@
-185,8
+185,8
@@
Node.prototype[ 'attr' ] = function( nameOrObj /* v */ ){
// setter
\r
if( X_Node_Attr_setAttr( this, attrs || ( this[ '_attrs' ] = {} ), this[ '_newAttrs' ] || ( this[ '_newAttrs' ] = {} ), nameOrObj, arguments[ 1 ] ) === true ){
\r
delete this[ '_attrText' ];
\r
// setter
\r
if( X_Node_Attr_setAttr( this, attrs || ( this[ '_attrs' ] = {} ), this[ '_newAttrs' ] || ( this[ '_newAttrs' ] = {} ), nameOrObj, arguments[ 1 ] ) === true ){
\r
delete this[ '_attrText' ];
\r
- this[ '_flags' ] |= X_Node
_State.DIRTY_ATTR | X_Node_State.
OLD_ATTRTEXT;
\r
- this[ '_flags' ] & X_Node
_State.
IN_TREE && X_Node_reserveUpdate();
\r
+ this[ '_flags' ] |= X_Node
Flags_DIRTY_ATTR | X_NodeFlags_
OLD_ATTRTEXT;
\r
+ this[ '_flags' ] & X_Node
Flags_
IN_TREE && X_Node_reserveUpdate();
\r
};
\r
return this;
\r
} else
\r
};
\r
return this;
\r
} else
\r
@@
-238,6
+238,16
@@
Node.prototype[ 'attr' ] = function( nameOrObj /* v */ ){
};
\r
function X_Node_Attr_setAttr( that, attrs, newAttrs, name, v ){
\r
switch( name ){
\r
};
\r
function X_Node_Attr_setAttr( that, attrs, newAttrs, name, v ){
\r
switch( name ){
\r
+ case 'ns' :
\r
+ case 'NS' :
\r
+ if( v === 'svg' || v === 'SVG' ){
\r
+ that[ '_flags' ] |= X_NodeFlags_IS_SVG;
\r
+ };
\r
+ if( v === 'vml' || v === 'VML' ){
\r
+ that[ '_flags' ] |= X_NodeFlags_IS_VML;
\r
+ };
\r
+ return;
\r
+
\r
// case 'type' : TODO IE は input, button, object に対して type の再設定が出来ない _state が要素生成済なら不可
\r
case 'UID' :
\r
case 'tag' :
\r
// case 'type' : TODO IE は input, button, object に対して type の再設定が出来ない _state が要素生成済なら不可
\r
case 'UID' :
\r
case 'tag' :
\r
@@
-248,8
+258,8
@@
function X_Node_Attr_setAttr( that, attrs, newAttrs, name, v ){
// TODO unique の check
\r
if( v !== that[ '_id' ] ){
\r
that[ '_id' ] = v;
\r
// TODO unique の check
\r
if( v !== that[ '_id' ] ){
\r
that[ '_id' ] = v;
\r
- that[ '_flags' ] |= X_Node
_State.
DIRTY_ID;
\r
- that[ '_flags' ] & X_Node
_State.
IN_TREE && X_Node_reserveUpdate();
\r
+ that[ '_flags' ] |= X_Node
Flags_
DIRTY_ID;
\r
+ that[ '_flags' ] & X_Node
Flags_
IN_TREE && X_Node_reserveUpdate();
\r
};
\r
return;
\r
case 'class' :
\r
};
\r
return;
\r
case 'class' :
\r