Merge pull request #351 from kadimi/patch-16
Remove deprecated jQuery method `size()`
This commit is contained in:
@@ -10,7 +10,7 @@ function sp_viewport() {
|
|||||||
(function($) {
|
(function($) {
|
||||||
|
|
||||||
/* Header */
|
/* Header */
|
||||||
if ( ! $('.sp-header').size() ) {
|
if ( ! $('.sp-header').length ) {
|
||||||
$('body').prepend( '<div class="sp-header sp-header-loaded"></div>' );
|
$('body').prepend( '<div class="sp-header sp-header-loaded"></div>' );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,4 +116,4 @@ function sp_viewport() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|||||||
Reference in New Issue
Block a user