Added Mike Alsup's style/cssText fix and made a quick typeof change.
This commit is contained in:
parent
83c7532161
commit
582075e965
5
jquery/jquery.js
vendored
5
jquery/jquery.js
vendored
|
@ -577,7 +577,7 @@ $.Select = function( t, context ) {
|
|||
};
|
||||
|
||||
$.tag = function(a,b){
|
||||
return a && typeof a.getElementsByTagName != "undefined" ?
|
||||
return a && a.getElementsByTagName ?
|
||||
a.getElementsByTagName( b ) : [];
|
||||
};
|
||||
|
||||
|
@ -587,7 +587,8 @@ $.attr = function(o,a,v){
|
|||
'for': 'htmlFor',
|
||||
'text': 'cssText',
|
||||
'class': 'className',
|
||||
'float': 'cssFloat'
|
||||
'float': 'cssFloat',
|
||||
'style': 'cssText'
|
||||
};
|
||||
a = (fix[a] && fix[a].replace && fix[a]) || a;
|
||||
var r = new RegExp("-([a-z])","ig");
|
||||
|
|
Loading…
Reference in a new issue