Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 371b5cb

Browse files
committed
Merge pull request #4997 from appendto/slider-onchange-fix
jQuery Tag Inserter: added check for jQuery existence in conditional tha...
2 parents e594636 + 47389f1 commit 371b5cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.tag.inserter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
document.write(
2020
'<script>' +
21-
'if ( parseInt( jQuery.fn.jquery.replace( /\\./g, "" ), 10 ) < 170 && window.define && window.define.amd ) {' +
21+
'if ( window.jQuery && parseInt( jQuery.fn.jquery.replace( /\\./g, "" ), 10 ) < 170 && window.define && window.define.amd ) {' +
2222
'define( "jquery", [], function () { return jQuery; } );'+
2323
'}'+
2424
'</script>'

0 commit comments

Comments
 (0)