diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2014-09-11 15:18:34 -0500 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2014-12-26 13:26:46 +0100 |
commit | 76df9e4e389d80bff410a9e5f08b848de1d21a2f (patch) | |
tree | 215a453aac2f1cc5574f66173e91d391493146d3 /src/core.js | |
parent | ab20d9d24f0a95df382c02e9ef3dcc4adb86e4f1 (diff) | |
download | jquery-76df9e4e389d80bff410a9e5f08b848de1d21a2f.tar.gz jquery-76df9e4e389d80bff410a9e5f08b848de1d21a2f.zip |
Build: Don't assume the browser environment; smoke test on Node w/ jsdom
Fixes gh-1950
Closes gh-1949
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core.js b/src/core.js index fa8436a01..6ce1027a0 100644 --- a/src/core.js +++ b/src/core.js @@ -1,5 +1,6 @@ define([ "./var/arr", + "./var/document", "./var/slice", "./var/concat", "./var/push", @@ -8,12 +9,9 @@ define([ "./var/toString", "./var/hasOwn", "./var/support" -], function( arr, slice, concat, push, indexOf, class2type, toString, hasOwn, support ) { +], function( arr, document, slice, concat, push, indexOf, class2type, toString, hasOwn, support ) { var - // Use the correct document accordingly with window argument (sandbox) - document = window.document, - version = "@VERSION", // Define a local copy of jQuery |