1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

Issue #4567 - Remove jQuery.once() dependency.

This commit is contained in:
Cameron
2021-09-13 18:40:19 -07:00
parent 48ace946f4
commit 6020de66e1
2 changed files with 9 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
{
if(window.location.hash && e107.callbacks.isValidSelector(window.location.hash))
{
$(context).find('body').once('initialize-smooth-scrolling').each(function ()
$(context).find('body').one('initialize-smooth-scrolling').each(function ()
{
if($(window.location.hash).length !== 0)
{
@@ -48,7 +48,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
e107.behaviors.eModalFront = {
attach: function (context, settings)
{
$(context).find('.e-modal').once('e-modal-front').each(function ()
$(context).find('.e-modal').one('e-modal-front').each(function ()
{
var $that = $(this);