deprecated.js 801 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. define( [
  2. "./core",
  3. "./core/nodeName"
  4. ], function( jQuery, nodeName ) {
  5. "use strict";
  6. jQuery.fn.extend( {
  7. bind: function( types, data, fn ) {
  8. return this.on( types, null, data, fn );
  9. },
  10. unbind: function( types, fn ) {
  11. return this.off( types, null, fn );
  12. },
  13. delegate: function( selector, types, data, fn ) {
  14. return this.on( types, selector, data, fn );
  15. },
  16. undelegate: function( selector, types, fn ) {
  17. // ( namespace ) or ( selector, types [, fn] )
  18. return arguments.length === 1 ?
  19. this.off( selector, "**" ) :
  20. this.off( types, selector || "**", fn );
  21. }
  22. } );
  23. jQuery.holdReady = function( hold ) {
  24. if ( hold ) {
  25. jQuery.readyWait++;
  26. } else {
  27. jQuery.ready( true );
  28. }
  29. };
  30. jQuery.isArray = Array.isArray;
  31. jQuery.parseJSON = JSON.parse;
  32. jQuery.nodeName = nodeName;
  33. } );