Skip to content

Commit 22068f3

Browse files
committed
Fixed click binding modifier test in IE
1 parent a2caea8 commit 22068f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/public/test/override.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ asyncTest("the getter for an element's href works normally if not overridden", 1
4141
asyncTest("the event selector strings are overridable", 2, function() {
4242
var documentClickBindings = $._data(document, 'events').click,
4343
linkClickBinding = $.grep(documentClickBindings, function(a) {
44-
return a.selector.indexOf('a[data-remote]') != -1;
44+
return a.selector && a.selector.indexOf('a[data-remote]') != -1;
4545
})[0];
4646

47+
//var documentClickBindings = "", linkClickBinding = {selector: ""};
48+
4749
ok($.rails.linkClickSelector.indexOf(', a[data-custom-remote-link]') != -1, 'linkClickSelector contains custom selector');
4850

4951
ok(linkClickBinding.selector.indexOf(', a[data-custom-remote-link]') != -1, 'actual document binding contains custom selector');

0 commit comments

Comments
 (0)