Moved jQuery global leak to end of file so accidental gEBCN overrides in prototype don't get caught up in confusion. Fixed tests to reference jQuery variable instead of $ (best practice). Fixes #8033
This commit is contained in:
parent
02ca45573b
commit
c50b74372c
|
@ -1054,6 +1054,6 @@ function doScrollCheck() {
|
|||
}
|
||||
|
||||
// Expose jQuery to the global object
|
||||
return (window.jQuery = window.$ = jQuery);
|
||||
return jQuery;
|
||||
|
||||
})();
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
window.jQuery = window.$ = jQuery;
|
||||
})(window);
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<script src="../../../src/offset.js"></script>
|
||||
<script type="text/javascript" src="../../../dist/jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
jQuery(function($) {
|
||||
$('.absolute').click(function() {
|
||||
$('#marker').css( $(this).offset() );
|
||||
var pos = $(this).position();
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<script src="../../../src/css.js"></script>
|
||||
<script src="../../../src/offset.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
jQuery(function($) {
|
||||
$('body').click(function() {
|
||||
$('#marker').css( $(this).offset() );
|
||||
return false;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<script src="../../../src/css.js"></script>
|
||||
<script src="../../../src/offset.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
jQuery(function($) {
|
||||
window.scrollTo(1000,1000);
|
||||
$('.fixed').click(function() {
|
||||
$('#marker').css( $(this).offset() );
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<script src="../../../src/css.js"></script>
|
||||
<script src="../../../src/offset.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
jQuery(function($) {
|
||||
$('.relative').click(function() {
|
||||
$('#marker').css( $(this).offset() );
|
||||
var pos = $(this).position();
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<script src="../../../src/css.js"></script>
|
||||
<script src="../../../src/offset.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
jQuery(function($) {
|
||||
window.scrollTo(1000,1000);
|
||||
$('#scroll-1')[0].scrollLeft = 5;
|
||||
$('#scroll-1')[0].scrollTop = 5;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<script src="../../../src/css.js"></script>
|
||||
<script src="../../../src/offset.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
jQuery(function($) {
|
||||
$('.static').click(function() {
|
||||
$('#marker').css( $(this).offset() );
|
||||
var pos = $(this).position();
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<script src="../../../src/css.js"></script>
|
||||
<script src="../../../src/offset.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
jQuery(function($) {
|
||||
$('table, th, td').click(function() {
|
||||
$('#marker').css( $(this).offset() );
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue