Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // As of 1.4.2, jQuery doesn't make use of native string trimming when it's available
- $.trim = (function (jQueryTrim) {
- return ("test".trim && " test ".trim() === "test") ? function(str) { return str.trim(); } : jQueryTrim;
- })($.trim);
Add Comment
Please, Sign In to add comment