scratch – Diff between revs 58 and 125
?pathlinks?
Rev 58 | Rev 125 | |||
---|---|---|---|---|
1 | define( [ |
1 | define([ |
|
2 | "./core" |
2 | "./core", |
|
- | 3 | "./traversing" |
||
3 | ], function( jQuery ) { |
4 | ], function( jQuery ) { |
|
- | 5 | |
||
- | 6 | // The number of elements contained in the matched element set |
||
4 | |
7 | jQuery.fn.size = function() { |
|
- | 8 | return this.length; |
||
5 | "use strict"; |
- | ||
6 | |
- | ||
7 | jQuery.fn.extend( { |
- | ||
8 | |
- | ||
9 | bind: function( types, data, fn ) { |
- | ||
10 | return this.on( types, null, data, fn ); |
- | ||
11 | }, |
- | ||
12 | unbind: function( types, fn ) { |
- | ||
13 | return this.off( types, null, fn ); |
- | ||
14 | }, |
- | ||
15 | |
- | ||
16 | delegate: function( selector, types, data, fn ) { |
- | ||
17 | return this.on( types, selector, data, fn ); |
- | ||
18 | }, |
- | ||
19 | undelegate: function( selector, types, fn ) { |
- | ||
20 | |
- | ||
21 | // ( namespace ) or ( selector, types [, fn] ) |
- | ||
22 | return arguments.length === 1 ? |
- | ||
23 | this.off( selector, "**" ) : |
- | ||
24 | this.off( types, selector || "**", fn ); |
- | ||
25 | } |
- | ||
26 | } ); |
9 | }; |
|
27 | |
10 | |
|
28 | jQuery.parseJSON = JSON.parse; |
11 | jQuery.fn.andSelf = jQuery.fn.addBack; |
|
29 | |
12 | |
|
30 | } ); |
13 | }); |
|
31 | |
14 | |