deprecated.js 596 B

123456789101112131415161718192021222324252627282930
  1. define( [
  2. "./core"
  3. ], function( jQuery ) {
  4. "use strict";
  5. jQuery.fn.extend( {
  6. bind: function( types, data, fn ) {
  7. return this.on( types, null, data, fn );
  8. },
  9. unbind: function( types, fn ) {
  10. return this.off( types, null, fn );
  11. },
  12. delegate: function( selector, types, data, fn ) {
  13. return this.on( types, selector, data, fn );
  14. },
  15. undelegate: function( selector, types, fn ) {
  16. // ( namespace ) or ( selector, types [, fn] )
  17. return arguments.length === 1 ?
  18. this.off( selector, "**" ) :
  19. this.off( types, selector || "**", fn );
  20. }
  21. } );
  22. jQuery.parseJSON = JSON.parse;
  23. } );