aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-09-09 11:26:21 -0400
committerTimmy Willison <timmywillisn@gmail.com>2013-09-09 11:34:23 -0400
commit3b53b75160606610cc8f87404f89fc9e10441c4b (patch)
treeb20600c885ee70e7b9cc7c880fc7a2cf141b56a8 /src/event.js
parent2fe09ceaf9c261d8e7fbdf37a13b21bfd85da962 (diff)
downloadjquery-3b53b75160606610cc8f87404f89fc9e10441c4b.tar.gz
jquery-3b53b75160606610cc8f87404f89fc9e10441c4b.zip
Break jQuery.access out into its own module to separate it from core; Adjust CommonJS+AMD build support to include non-var dependencies. Convert modules with more than a few dependencies to use CJS+AMD syntax.
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/event.js b/src/event.js
index bd389ba97..6887b36dd 100644
--- a/src/event.js
+++ b/src/event.js
@@ -1,20 +1,22 @@
-define([
- "./core",
- "./var/strundefined",
- "./var/rnotwhite",
- "./var/hasOwn",
- "./var/slice",
- "./event/support",
- "./data/var/data_priv",
- "./data/accepts",
- "./selector"
-], function( jQuery, strundefined, rnotwhite, hasOwn, slice, support, data_priv ) {
-
-var rkeyEvent = /^key/,
+define(function( require ) {
+
+var
+ jQuery = require( "./core" ),
+ strundefined = require( "./var/strundefined" ),
+ rnotwhite = require( "./var/rnotwhite" ),
+ hasOwn = require( "./var/hasOwn" ),
+ slice = require( "./var/slice" ),
+ support = require( "./event/support" ),
+ data_priv = require( "./data/var/data_priv" ),
+ rkeyEvent = /^key/,
rmouseEvent = /^(?:mouse|contextmenu)|click/,
rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
rtypenamespace = /^([^.]*)(?:\.(.+)|)$/;
+// Dependencies not needed as vars
+require( "./data/accepts" );
+require( "./selector" );
+
function returnTrue() {
return true;
}