summaryrefslogtreecommitdiffstatshomepage
path: root/src/js/_enqueues/admin/custom-background.js
diff options
context:
space:
mode:
authorSergey Biryukov <sergeybiryukov@git.wordpress.org>2019-11-29 17:59:47 +0000
committerSergey Biryukov <sergeybiryukov@git.wordpress.org>2019-11-29 17:59:47 +0000
commita03bb5454673d62dae26f50cd13619e92b23c884 (patch)
treefaac09874cdb44e25548961f163c0f8a06dc9028 /src/js/_enqueues/admin/custom-background.js
parentea5bfe134f50b91680369f50b4d12d233b1f917c (diff)
downloadwordpress-a03bb5454673d62dae26f50cd13619e92b23c884.tar.gz
wordpress-a03bb5454673d62dae26f50cd13619e92b23c884.zip
Docs: Replace `@returns` tags in JS docs with `@return`.
Per the documentation standards, `@returns` is an unsupported synonym, `@return` should be used instead: https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/javascript/ See #48303. git-svn-id: https://develop.svn.wordpress.org/trunk@46800 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src/js/_enqueues/admin/custom-background.js')
-rw-r--r--src/js/_enqueues/admin/custom-background.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/js/_enqueues/admin/custom-background.js b/src/js/_enqueues/admin/custom-background.js
index a948e780a4..346ae9c627 100644
--- a/src/js/_enqueues/admin/custom-background.js
+++ b/src/js/_enqueues/admin/custom-background.js
@@ -21,7 +21,7 @@
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
$('#background-color').wpColorPicker({
change: function( event, ui ) {
@@ -37,7 +37,7 @@
*
* @since 4.7.0
*
- * @returns {void}
+ * @return {void}
*/
$( 'select[name="background-size"]' ).change( function() {
bgImage.css( 'background-size', $( this ).val() );
@@ -48,7 +48,7 @@
*
* @since 4.7.0
*
- * @returns {void}
+ * @return {void}
*/
$( 'input[name="background-position"]' ).change( function() {
bgImage.css( 'background-position', $( this ).val() );
@@ -59,7 +59,7 @@
*
* @since 3.0.0
*
- * @returns {void}
+ * @return {void}
*/
$( 'input[name="background-repeat"]' ).change( function() {
bgImage.css( 'background-repeat', $( this ).is( ':checked' ) ? 'repeat' : 'no-repeat' );
@@ -70,7 +70,7 @@
*
* @since 4.7.0
*
- * @returns {void}
+ * @return {void}
*/
$( 'input[name="background-attachment"]' ).change( function() {
bgImage.css( 'background-attachment', $( this ).is( ':checked' ) ? 'scroll' : 'fixed' );
@@ -81,7 +81,7 @@
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
$('#choose-from-library-link').click( function( event ) {
var $el = $(this);
@@ -121,7 +121,7 @@
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
frame.on( 'select', function() {
// Grab the selected attachment.