Permalink
Browse files

Merge pull request #4997 from appendto/slider-onchange-fix

jQuery Tag Inserter: added check for jQuery existence in conditional tha...
  • Loading branch information...
2 parents e594636 + 47389f1 commit 371b5cbd716f138a399c913f6b4df84e6f90a32a @gseguin gseguin committed Oct 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.tag.inserter.js
@@ -18,7 +18,7 @@
document.write(
'<script>' +
- 'if ( parseInt( jQuery.fn.jquery.replace( /\\./g, "" ), 10 ) < 170 && window.define && window.define.amd ) {' +
+ 'if ( window.jQuery && parseInt( jQuery.fn.jquery.replace( /\\./g, "" ), 10 ) < 170 && window.define && window.define.amd ) {' +
'define( "jquery", [], function () { return jQuery; } );'+
'}'+
'</script>'

0 comments on commit 371b5cb

Please sign in to comment.