| @@ -1,5 +1,5 @@ | ||
| 1 | -/* global wp, gapi, FB, twttr, PaypalExpressCheckout */ | |
| 1 | +/* global gapi, FB, twttr, PaypalExpressCheckout */ | |
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | 4 | * Utilities to work with widgets in Customizer. |
| 5 | 5 | */ |
| @@ -5,9 +5,9 @@ | ||
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Checks whether this Customizer supports partial widget refresh. |
| 9 | - * @returns {boolean} | |
| 9 | + * @return {boolean} | |
| 10 | 10 | */ |
| 11 | 11 | wp.customizerHasPartialWidgetRefresh = function () { |
| 12 | 12 | return ( |
| 13 | 13 | 'object' === typeof wp && |
| @@ -21,9 +21,9 @@ | ||
| 21 | 21 | /** |
| 22 | 22 | * Verifies that the placed widget ID contains the widget name. |
| 23 | 23 | * @param {object} placement |
| 24 | 24 | * @param {string} widgetName |
| 25 | - * @returns {*|boolean} | |
| 25 | + * @return {*|boolean} | |
| 26 | 26 | */ |
| 27 | 27 | wp.isJetpackWidgetPlaced = function ( placement, widgetName ) { |
| 28 | 28 | return placement.partial.widgetId && 0 === placement.partial.widgetId.indexOf( widgetName ); |
| 29 | 29 | }; |
| @@ -89,9 +89,9 @@ | ||
| 89 | 89 | var buttonId = $( '.jetpack-simple-payments-button', placement.container ) |
| 90 | 90 | .attr( 'id' ) |
| 91 | 91 | .replace( '_button', '' ); |
| 92 | 92 | PaypalExpressCheckout.renderButton( null, null, buttonId, null ); |
| 93 | - } catch ( e ) { | |
| 93 | + } catch { | |
| 94 | 94 | // PaypalExpressCheckout may fail. |
| 95 | 95 | // For the same usage, see also: |
| 96 | 96 | // https://github.com/Automattic/jetpack/blob/6c1971e6bed7d3df793392a7a58ffe0afaeeb5fe/modules/simple-payments/simple-payments.php#L111 |
| 97 | 97 | } |