Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2012
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. Index: jquery-1.7.2.js
  2. ===================================================================
  3. --- jquery-1.7.2.js (revision 1989)
  4. +++ jquery-1.7.2.js (working copy)
  5. @@ -7156,14 +7156,13 @@
  6. }
  7. }
  8.  
  9. - var self = this;
  10. -
  11. // Request the remote document
  12. jQuery.ajax({
  13. url: url,
  14. type: type,
  15. dataType: "html",
  16. data: params,
  17. + context: this,
  18. // Complete callback (responseText is used internally)
  19. complete: function( jqXHR, status, responseText ) {
  20. // Store the response as specified by the jqXHR object
  21. @@ -7176,7 +7175,7 @@
  22. responseText = r;
  23. });
  24. // See if a selector was specified
  25. - self.html( selector ?
  26. + this.html( selector ?
  27. // Create a dummy div to hold the results
  28. jQuery("<div>")
  29. // inject the contents of the document in, removing the scripts
  30. @@ -7191,7 +7190,7 @@
  31. }
  32.  
  33. if ( callback ) {
  34. - self.each( callback, [ responseText, status, jqXHR ] );
  35. + this.each( callback, [ responseText, status, jqXHR ] );
  36. }
  37. }
  38. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement