1
|
define( [
|
2
|
"./core",
|
3
|
"./core/nodeName"
|
4
|
], function( jQuery, nodeName ) {
|
5
|
|
6
|
"use strict";
|
7
|
|
8
|
jQuery.fn.extend( {
|
9
|
|
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
|
},
|
16
|
|
17
|
delegate: function( selector, types, data, fn ) {
|
18
|
return this.on( types, selector, data, fn );
|
19
|
},
|
20
|
undelegate: function( selector, types, fn ) {
|
21
|
|
22
|
// ( namespace ) or ( selector, types [, fn] )
|
23
|
return arguments.length === 1 ?
|
24
|
this.off( selector, "**" ) :
|
25
|
this.off( types, selector || "**", fn );
|
26
|
}
|
27
|
} );
|
28
|
|
29
|
jQuery.holdReady = function( hold ) {
|
30
|
if ( hold ) {
|
31
|
jQuery.readyWait++;
|
32
|
} else {
|
33
|
jQuery.ready( true );
|
34
|
}
|
35
|
};
|
36
|
jQuery.isArray = Array.isArray;
|
37
|
jQuery.parseJSON = JSON.parse;
|
38
|
jQuery.nodeName = nodeName;
|
39
|
|
40
|
} );
|