Skip to content

Commit 143472b

Browse files
committed
restore coment from the old index.html about overwriting the link selector
1 parent b39f06b commit 143472b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

actionview/test/ujs/src/attach-bindings.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
// Must go before rails-ujs.
12
document.addEventListener('rails:attachBindings', function() {
3+
// This is for test in override.js.
24
window.Rails.linkClickSelector += ', a[data-custom-remote-link]';
5+
36
// Hijacks link click before ujs binds any handlers
47
// This is only used for ctrl-clicking test on remote links
58
window.Rails.delegate(document, '#qunit-fixture a', 'click', function(e) {

0 commit comments

Comments
 (0)