Skip to content

Commit

Permalink
Issue #4567 - Remove jQuery.once() dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Sep 14, 2021
1 parent 48ace94 commit 6020de6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions e107_web/js/core/all.jquery.js
Expand Up @@ -33,7 +33,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
*
* Behaviors should use
* @code
* $(selector).once('behavior-name', function () {
* $(selector).one('behavior-name', function () {
* ...
* });
* @endcode
Expand Down Expand Up @@ -123,7 +123,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
e107.behaviors.eAJAX = {
attach: function (context, settings)
{
$(context).find('.e-ajax').once('e-ajax').each(function ()
$(context).find('.e-ajax').one('e-ajax').each(function ()
{
var $this = $(this);
var event = $this.attr('data-event') || e107.callbacks.getDefaultEventHandler($this);
Expand Down Expand Up @@ -198,7 +198,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
{
if(typeof $.fn.tooltip !== 'undefined')
{
$(context).find('[data-toggle="tooltip"]').once('bootstrap-tooltip').each(function ()
$(context).find('[data-toggle="tooltip"]').one('bootstrap-tooltip').each(function ()
{
$(this).tooltip();
});
Expand All @@ -214,7 +214,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
e107.behaviors.eExpandIt = {
attach: function (context, settings)
{
$(context).find('.e-expandit').once('e-expandit').each(function ()
$(context).find('.e-expandit').one('e-expandit').each(function ()
{
$(this).show();

Expand Down Expand Up @@ -304,7 +304,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
e107.behaviors.eDialogClose = {
attach: function (context, settings)
{
//$(context).find('.e-dialog-close').once('e-dialog-close').each(function ()
//$(context).find('.e-dialog-close').one('e-dialog-close').each(function ()
//{
// $(this).click(function ()
$(context).on('click', '.e-dialog-close', function()
Expand Down Expand Up @@ -340,7 +340,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
e107.behaviors.eHideMe = {
attach: function (context, settings)
{
$(context).find('.e-hideme').once('e-hide-me').each(function ()
$(context).find('.e-hideme').one('e-hide-me').each(function ()
{
$(this).hide();
});
Expand All @@ -355,7 +355,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
e107.behaviors.buttonSubmit = {
attach: function (context, settings)
{
$(context).find('button[type=submit]').once('button-submit').each(function ()
$(context).find('button[type=submit]').one('button-submit').each(function ()
{
$(this).on('click', function ()
{
Expand Down
4 changes: 2 additions & 2 deletions e107_web/js/core/front.jquery.js
Expand Up @@ -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)
{
Expand All @@ -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);

Expand Down

0 comments on commit 6020de6

Please sign in to comment.