summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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',