diff options
author | Lee Rowlands <lee.rowlands@previousnext.com.au> | 2023-06-28 20:04:07 +1000 |
---|---|---|
committer | Lee Rowlands <lee.rowlands@previousnext.com.au> | 2023-06-28 20:04:07 +1000 |
commit | fe8ce5b0d8911f7a42995a0cf131a500af0ba2e2 (patch) | |
tree | 0b8a16bb6afa39d469b5073a371ce6d6279714b7 /core/misc/tableresponsive.js | |
parent | cc63aad6587b1eaa2bb9f2f9a51655e97eb23ec5 (diff) | |
download | drupal-fe8ce5b0d8911f7a42995a0cf131a500af0ba2e2.tar.gz drupal-fe8ce5b0d8911f7a42995a0cf131a500af0ba2e2.zip |
Issue #3238914 by hooroomoo, mstrelan: Refactor (if feasible) uses of the jQuery proxy function to use VanillaJS
Diffstat (limited to 'core/misc/tableresponsive.js')
-rw-r--r-- | core/misc/tableresponsive.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/misc/tableresponsive.js b/core/misc/tableresponsive.js index 840bbf0e8cb..39ad39bf72f 100644 --- a/core/misc/tableresponsive.js +++ b/core/misc/tableresponsive.js @@ -37,7 +37,7 @@ 'Show table cells that were hidden to make the table fit within a small screen.', ), ) - .on('click', $.proxy(this, 'eventhandlerToggleColumns')); + .on('click', this.eventhandlerToggleColumns.bind(this)); this.$table.before( $('<div class="tableresponsive-toggle-columns"></div>').append( @@ -49,7 +49,7 @@ $(window) .on( 'resize.tableresponsive', - $.proxy(this, 'eventhandlerEvaluateColumnVisibility'), + this.eventhandlerEvaluateColumnVisibility.bind(this), ) .trigger('resize.tableresponsive'); } |