1 | Line 408 |
---|
2 | |
---|
3 | // Catch cases where $(document).ready() is called after the |
---|
4 | // browser event has already occurred. |
---|
5 | if ( document.readyState === "complete" ) { |
---|
6 | return jQuery.ready(); |
---|
7 | } |
---|
8 | |
---|
9 | to |
---|
10 | |
---|
11 | // Catch cases where $(document).ready() is called after the |
---|
12 | // browser event has already occurred. |
---|
13 | if ( document.hasOwnProperty("readyState") && document.readyState === "complete" ) { |
---|
14 | return jQuery.ready(); |
---|
15 | } |
---|
16 | |
---|
17 | ------------------------------------------------------------------------ |
---|
18 | |
---|
19 | |
---|
20 | Line 1003 |
---|
21 | |
---|
22 | return typeof name === "string" ? thisCache[ name ] : thisCache; |
---|
23 | |
---|
24 | to |
---|
25 | |
---|
26 | return typeof name === "string" && thisCache.hasOwnProperty(name) ? thisCache[ name ] : thisCache; |
---|
27 | |
---|
28 | |
---|
29 | ------------------------------------------------------------------------ |
---|
30 | |
---|
31 | |
---|
32 | Line 1776 |
---|
33 | |
---|
34 | // Trigger the event, it is assumed that "handle" is a function |
---|
35 | var handle = jQuery.data( elem, "handle" ); |
---|
36 | if ( handle ) { |
---|
37 | handle.apply( elem, data ); |
---|
38 | } |
---|
39 | |
---|
40 | to |
---|
41 | |
---|
42 | // Trigger the event, it is assumed that "handle" is a function |
---|
43 | var handle = jQuery.data( elem, "handle" ); |
---|
44 | if ( handle && handle.hasOwnProperty('apply') ) { |
---|
45 | handle.apply( elem, data ); |
---|
46 | } |
---|