Permalink
Browse files

jQuery Tag Inserter: added check for jQuery existence in conditional …

…that creates jQuery AMD definition. Fixes #4996. Win Phone 7/8: Slider onChange test failing.
  • Loading branch information...
1 parent cdb1b49 commit 47389f1989e6f9c65fdfc806362a73e43056ecf9 Brian Edgerton committed Sep 13, 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 47389f1

Please sign in to comment.