git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bah i need some sleep...
[jquery.git]
/
jquery
/
jquery.js
diff --git
a/jquery/jquery.js
b/jquery/jquery.js
index
f54d05e
..
97fa48e
100644
(file)
--- a/
jquery/jquery.js
+++ b/
jquery/jquery.js
@@
-129,21
+129,21
@@
jQuery.fn = jQuery.prototype = {
},
addClass: function(c) {
return this.each(function(){
},
addClass: function(c) {
return this.each(function(){
- jQuery.class.add(this,c);
+ jQuery.className.add(this,c);
});
},
removeClass: function(c) {
return this.each(function(){
});
},
removeClass: function(c) {
return this.each(function(){
- jQuery.class.remove(this,c);
+ jQuery.className.remove(this,c);
});
},
toggleClass: function(c) {
return this.each(function(){
if (jQuery.hasWord(this,c))
});
},
toggleClass: function(c) {
return this.each(function(){
if (jQuery.hasWord(this,c))
- jQuery.class.remove(this,c);
+ jQuery.className.remove(this,c);
else
else
- jQuery.class.add(this,c);
+ jQuery.className.add(this,c);
});
},
remove: function() {
});
},
remove: function() {
@@
-318,10
+318,10
@@
jQuery.fn = jQuery.prototype = {
}
};
}
};
-jQuery.class = {
+jQuery.className = {
add: function(o,c){
if (jQuery.hasWord(o,c)) return;
add: function(o,c){
if (jQuery.hasWord(o,c)) return;
- o.className += ( o.className.length > 0 ? " " : "" ) + c;
+ o.className += ( o.className ? " " : "" ) + c;
},
remove: function(o,c){
o.className = !c ? "" :
},
remove: function(o,c){
o.className = !c ? "" :