the opening parenthesis of a multi-line function call is the last content of the line.
1 | jQuery( document ).ready( function() { |
||
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
2 | |||
3 | var self; |
||
4 | |||
5 | self = { |
||
6 | queriedPost: new wp.customize.Value() |
||
7 | }; |
||
8 | |||
9 | // Listen for queried-post messages from the preview. |
||
10 | wp.customize.bind( 'ready', function() { |
||
0 ignored issues
–
show
|
|||
11 | wp.customize.previewer.bind( 'queried-post', function( queriedPost ) { |
||
0 ignored issues
–
show
|
|||
12 | self.queriedPost.set( queriedPost || false ); |
||
13 | } ); |
||
14 | } ); |
||
15 | |||
16 | // Listen for post |
||
17 | self.queriedPost.bind( function( newPost, oldPost ) { |
||
0 ignored issues
–
show
|
|||
18 | window.kirkiPost = false; |
||
19 | if ( newPost || oldPost ) { |
||
20 | window.kirkiPost = ( newPost ) ? newPost : oldPost; |
||
21 | } |
||
22 | } ); |
||
23 | } ); |
||
24 |