aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-10-15 10:40:48 -0400
committerTimmy Willison <timmywillisn@gmail.com>2013-10-15 10:40:48 -0400
commita5037cb9e3851b171b49f6d717fb40e59aa344c2 (patch)
tree355cdce844870aafd02f11ca11b2528b6ecdd92a /src/manipulation.js
parent310b8f5b6e086de92531cc9c210c6eb9eb831dd8 (diff)
downloadjquery-a5037cb9e3851b171b49f6d717fb40e59aa344c2.tar.gz
jquery-a5037cb9e3851b171b49f6d717fb40e59aa344c2.zip
Fixes #14450. Remove CommonJS+AMD syntax.
Diffstat (limited to 'src/manipulation.js')
-rw-r--r--src/manipulation.js34
1 files changed, 16 insertions, 18 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index e27616fe3..3de597f0f 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -1,16 +1,21 @@
-// Require more than a few needed variables
-// Keep in mind that a dependency array cannot be used with CommonJS+AMD syntax
-define(function( require ) {
+define([
+ "./core",
+ "./var/concat",
+ "./var/push",
+ "./core/access",
+ "./manipulation/var/rcheckableType",
+ "./manipulation/support",
+ "./data/var/data_priv",
+ "./data/var/data_user",
+
+ "./core/init",
+ "./data/accepts",
+ "./traversing",
+ "./selector",
+ "./event"
+], function( jQuery, concat, push, access, rcheckableType, support, data_priv, data_user ) {
var
- jQuery = require( "./core" ),
- concat = require( "./var/concat" ),
- push = require( "./var/push" ),
- access = require( "./core/access" ),
- rcheckableType = require( "./manipulation/var/rcheckableType" ),
- support = require( "./manipulation/support" ),
- data_priv = require( "./data/var/data_priv" ),
- data_user = require( "./data/var/data_user" ),
rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
rtagName = /<([\w:]+)/,
rhtml = /<|&#?\w+;/,
@@ -41,13 +46,6 @@ wrapMap.optgroup = wrapMap.option;
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
wrapMap.th = wrapMap.td;
-// Dependencies not needed as variables
-require( "./core/init" );
-require( "./data/accepts" );
-require( "./traversing" );
-require( "./selector" );
-require( "./event" );
-
// Support: 1.x compatibility
// Manipulating tables requires a tbody
function manipulationTarget( elem, content ) {