OSDN Git Service

Version 0.6.133, fix for closure compiler - ADVANCED_OPTIMIZATIONS
[pettanr/clientJs.git] / 0.6.x / js / 02_dom / 05_XNodeAttr.js
index cd04236..e56b9df 100644 (file)
@@ -161,7 +161,7 @@ Node.prototype.attr = function( nameOrObj /* v */ ){
        \r
        if( !this._tag ) return this;\r
        \r
-       if( nameOrObj && X.Type.isObject( nameOrObj ) ){\r
+       if( nameOrObj && X_Type_isObject( nameOrObj ) ){\r
                attrs || ( attrs = this._attrs = {} );\r
                newAttrs = this._newAttrs || ( this._newAttrs = {} );\r
                \r
@@ -213,7 +213,7 @@ Node.prototype.attr = function( nameOrObj /* v */ ){
                                // kquery.js : safariのバグ対策\r
                                // if ($.browser.safari && key === "selected" && tmp) tmp.selectedIndex;\r
                                // 親ノードの selectedIndex の getter を呼んでおくと値が正しくなる、ということ?( by itozyun )\r
-                               if( X_UA.WebKit ) this._rawObject.parentNode && this._rawObject.parentNode.selectedIndex;\r
+                               if( X_UA[ 'WebKit' ] ) this._rawObject.parentNode && this._rawObject.parentNode.selectedIndex;\r
                        case 'value' :\r
                                if( this._tag === 'INPUT' && X_Node_Attr_STATIC_VALUE_TYPES[ attrs[ 'type' ] ] ) break;\r
                        case 'checked' :\r