summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury German <blueknight@gentoo.org>2022-01-23 19:12:12 -0500
committerYury German <blueknight@gentoo.org>2022-01-23 19:12:12 -0500
commit856daf897233b153771276d227f05f8f33a6189e (patch)
tree0b5f869863fb7810f8bdf30b848606779415f2d0 /themes/twentyfourteen/js/functions.js
parentPlugin - akismet update from 4.1.3 to 4.2.1 (diff)
downloadblogs-gentoo-856daf897233b153771276d227f05f8f33a6189e.tar.gz
blogs-gentoo-856daf897233b153771276d227f05f8f33a6189e.tar.bz2
blogs-gentoo-856daf897233b153771276d227f05f8f33a6189e.zip
twentyfourteen upg 2.7 to 3.2 and twentysixteen from 2.0 to 2.5
Signed-off-by: Yury German <blueknight@gentoo.org>
Diffstat (limited to 'themes/twentyfourteen/js/functions.js')
-rw-r--r--themes/twentyfourteen/js/functions.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/themes/twentyfourteen/js/functions.js b/themes/twentyfourteen/js/functions.js
index ac4629d7..557cc9f8 100644
--- a/themes/twentyfourteen/js/functions.js
+++ b/themes/twentyfourteen/js/functions.js
@@ -1,5 +1,5 @@
/**
- * Theme functions file
+ * Theme functions file.
*
* Contains handlers for navigation, accessibility, header sizing
* footer widgets and Featured Content slider
@@ -126,6 +126,7 @@
*
* Uses jQuery's width() function to determine the size of the window and add
* the default ARIA attributes for the menu toggle if it's visible.
+ *
* @since Twenty Fourteen 1.4
*/
function onResizeARIA() {
@@ -146,12 +147,12 @@
onResizeARIA();
} );
- _window.load( function() {
+ _window.on( 'load', function() {
var footerSidebar,
isCustomizeSelectiveRefresh = ( 'undefined' !== typeof wp && wp.customize && wp.customize.selectiveRefresh );
// Arrange footer widgets vertically.
- if ( $.isFunction( $.fn.masonry ) ) {
+ if ( typeof $.fn.masonry === 'function' ) {
footerSidebar = $( '#footer-sidebar' );
footerSidebar.masonry( {
itemSelector: '.widget',