Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 14th, 2010  |  syntax: JavaScript  |  size: 0.26 KB  |  views: 150  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. (function( myObject, myMethod ){
  2.  
  3.     var oldHtmlMethod =  myObject[myMethod];
  4.  
  5.     myObject[myMethod]= function() {
  6.         // do your special stuff
  7.         return(
  8.             oldHtmlMethod.apply( this, arguments )
  9.         );
  10.     };
  11.  
  12.  
  13. }) (jQuery.fn, 'html')