SHARE
TWEET

Untitled

a guest Sep 14th, 2010 160 Never
  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')
RAW Paste Data
Top