Remove deprecated jQuery method size()

This commit is contained in:
Nabil Kadimi
2019-07-23 15:02:09 +01:00
committed by GitHub
parent 5d8f754e59
commit 9bb36956e3

View File

@@ -10,7 +10,7 @@ function sp_viewport() {
(function($) {
/* Header */
if ( ! $('.sp-header').size() ) {
if ( ! $('.sp-header').length ) {
$('body').prepend( '<div class="sp-header sp-header-loaded"></div>' );
}
@@ -116,4 +116,4 @@ function sp_viewport() {
}
});
})(jQuery);
})(jQuery);