You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
801 B

4 years ago
  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. } );