()
| 661 | |
| 662 | |
| 663 | function has_jQuery3() { |
| 664 | if (!window.jQuery) { |
| 665 | return false; |
| 666 | } |
| 667 | var $version = window.jQuery.fn.jquery; |
| 668 | var $major_version = parseInt($version.split(".")[0]); |
| 669 | return $major_version >= 3; |
| 670 | } |
| 671 | |
| 672 | /* |
| 673 | / Shiny 1.4 bumped jQuery from 1.x to 3.x which means jQuery's |
no outgoing calls
no test coverage detected