jQuery Tag Inserter: added check for jQuery existence in conditional tha... #4997

Merged
merged 1 commit into from Oct 15, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
@@ -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>'