Landing pull request 586. Create exports.js for exporting jQuery to window and AMD. Fixes #10687.

More Details:
 - https://github.com/jquery/jquery/pull/586
 - http://bugs.jquery.com/ticket/10687
This commit is contained in:
jrburke
2011-11-14 12:13:25 -05:00
committed by timmywil
parent 499d7e409c
commit 8bc60bab5d
7 changed files with 35 additions and 24 deletions

View File

@@ -28,6 +28,7 @@
<script src="../src/effects.js"></script>
<script src="../src/offset.js"></script>
<script src="../src/dimensions.js"></script>
<script src="../src/exports.js"></script>
<script src="data/versioncheck.js"></script>
@@ -51,6 +52,7 @@
<script src="unit/effects.js"></script>
<script src="unit/offset.js"></script>
<script src="unit/dimensions.js"></script>
<script src="unit/exports.js"></script>
<script>
// html5shiv, enabling HTML5 elements to be used with jQuery

View File

@@ -225,12 +225,6 @@ test("browser", function() {
});
}
test("amdModule", function() {
expect(1);
equal( jQuery, amdDefined, "Make sure defined module matches jQuery" );
});
test("noConflict", function() {
expect(7);
@@ -534,7 +528,7 @@ test("isXMLDoc - HTML", function() {
test("XSS via location.hash", function() {
expect(1);
stop();
jQuery._check9521 = function(x){
ok( x, "script called from #id-like selector with inline handler" );

7
test/unit/exports.js Normal file
View File

@@ -0,0 +1,7 @@
module("exports", { teardown: moduleTeardown });
test("amdModule", function() {
expect(1);
equal( jQuery, amdDefined, "Make sure defined module matches jQuery" );
});