Skip to content

Commit 857d14a

Browse files
authored
Merge pull request risuiowa#77 from AlexKalinin/master
[Bugfix] Empty selector in Mozilla Firefox
2 parents 0aa654c + 949daa1 commit 857d14a

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

.hound.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
jshint:
2+
ignore_file: .jshintignore

.jshintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lib/assets/javascripts/autocomplete-rails.js

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
rvm:
22
- 1.9.3
3-
- 2.0.0
3+
- 2.3.1

lib/assets/javascripts/autocomplete-rails-uncompressed.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
}
2525
};
2626
if (jQuery.fn.on !== undefined) {
27+
if (!this.selector) {
28+
return;
29+
}
2730
return jQuery(document).on('focus',this.selector,handler);
2831
}
2932
else {

lib/assets/javascripts/autocomplete-rails.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)