Issues (377)

modules/post-meta/customize-controls.js (4 issues)

the opening parenthesis of a multi-line function call is the last content of the line.

Coding Style Informational
1
jQuery( document ).ready( function() {
0 ignored issues
show
The opening parenthesis of a multi-line function call should be the last content on the line.
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
The opening parenthesis of a multi-line function call should be the last content on the line.
Loading history...
11
		wp.customize.previewer.bind( 'queried-post', function( queriedPost ) {
0 ignored issues
show
The opening parenthesis of a multi-line function call should be the last content on the line.
Loading history...
12
			self.queriedPost.set( queriedPost || false );
13
		} );
14
	} );
15
16
	// Listen for post
17
	self.queriedPost.bind( function( newPost, oldPost ) {
0 ignored issues
show
The opening parenthesis of a multi-line function call should be the last content on the line.
Loading history...
18
		window.kirkiPost = false;
19
		if ( newPost || oldPost ) {
20
			window.kirkiPost = ( newPost ) ? newPost : oldPost;
21
		}
22
	} );
23
} );
24