X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=jquery%2Fjquery.js;h=b9cb311ea29306281e26d897c687edc7a60177bf;hb=4233896e9d9e19e544df6a010b134faaf018cf5a;hp=07fcdffecb9a5454254499aead615f0396732043;hpb=cd297dd9ebb7559fc6f0d7ca43bc13dc07e36b9e;p=jquery.git diff --git a/jquery/jquery.js b/jquery/jquery.js index 07fcdff..b9cb311 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,9 +108,7 @@ function $(a,c) { }, removeClass: function(c) { return this.each(function(){ - if ( c == null ) - this.className = ''; - else + this.className = c == null ? '' : this.className.replace( new RegExp('(^|\\s*\\b[^-])'+c+'($|\\b(?=[^-]))', 'g'), ''); }); @@ -756,4 +756,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);