X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=jquery%2Fjquery.js;h=4a960a902d2b8dd787e83a6624edf9b72cafb62c;hb=0ababc8fea6a6003be1649cfc3817d6c5628f0c7;hp=668a592d5892f1b77bda19b21b9ccf408290a86e;hpb=4ab5a88bc4cd76c293190ed68a4962d91c108816;p=jquery.git diff --git a/jquery/jquery.js b/jquery/jquery.js index 668a592..4a960a9 100644 --- a/jquery/jquery.js +++ b/jquery/jquery.js @@ -1,7 +1,9 @@ /* - * JQuery (http://jquery.com/) - * By John Resig (http://ejohn.org/) - * Under an Attribution, Share Alike License + * jQuery (jquery.com) + * + * Copyright (c) 2006 John Resig (ejohn.org) + * Licensed under the MIT License: + * http://www.opensource.org/licenses/mit-license.php * * $Date$ * $Rev$ @@ -106,7 +108,9 @@ function $(a,c) { }, removeClass: function(c) { return this.each(function(){ - this.className = c == null ? '' : + if ( c == null ) + this.className = ''; + else this.className.replace( new RegExp('(^|\\s*\\b[^-])'+c+'($|\\b(?=[^-]))', 'g'), ''); }); @@ -754,4 +758,4 @@ $.fn.text = function(e) { setTimeout(function(){ if ( typeof Prototype != "undefined" && $.g == null && $.clean == null ) throw "Error: You are overwriting jQuery, please include jQuery last."; -}, 1000); \ No newline at end of file +}, 1000);