Tests: move readywait to an iframe test
[jquery.git] / src / deprecated.js
blob9589ec872618926fe2fd8f711b3c8b50a8f414f7
1 define( [
2         "./core",
3         "./core/nodeName"
4 ], function( jQuery, nodeName ) {
6 "use strict";
8 jQuery.fn.extend( {
10         bind: function( types, data, fn ) {
11                 return this.on( types, null, data, fn );
12         },
13         unbind: function( types, fn ) {
14                 return this.off( types, null, fn );
15         },
17         delegate: function( selector, types, data, fn ) {
18                 return this.on( types, selector, data, fn );
19         },
20         undelegate: function( selector, types, fn ) {
22                 // ( namespace ) or ( selector, types [, fn] )
23                 return arguments.length === 1 ?
24                         this.off( selector, "**" ) :
25                         this.off( types, selector || "**", fn );
26         }
27 } );
29 jQuery.holdReady = function( hold ) {
30         if ( hold ) {
31                 jQuery.readyWait++;
32         } else {
33                 jQuery.ready( true );
34         }
36 jQuery.isArray = Array.isArray;
37 jQuery.parseJSON = JSON.parse;
38 jQuery.nodeName = nodeName;
40 } );