Guest User

Untitled

a guest
Jul 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. // As of 1.4.2, jQuery doesn't make use of native string trimming when it's available
  2. $.trim = (function (jQueryTrim) {
  3. return ("test".trim && " test ".trim() === "test") ? function(str) { return str.trim(); } : jQueryTrim;
  4. })($.trim);
Add Comment
Please, Sign In to add comment