View difference between Paste ID: M6wv8AwS and
SHOW:
|
|
- or go back to the newest paste.
1 | - | |
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') |