aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes
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 12:04:03 -0400
commit2063d6c1896b0c46c39fa0fdecef817f2e6f57c3 (patch)
tree1b642c7a1f956ddfb665487c13b8b04d5a4157ee /src/attributes
parentfb599f6315512f64e50d02661990cf34bb40c7db (diff)
downloadjquery-2063d6c1896b0c46c39fa0fdecef817f2e6f57c3.tar.gz
jquery-2063d6c1896b0c46c39fa0fdecef817f2e6f57c3.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.
Conflicts: src/core.js src/css.js src/data.js src/effects.js src/event.js src/manipulation.js src/traversing.js
Diffstat (limited to 'src/attributes')
-rw-r--r--src/attributes/attr.js5
-rw-r--r--src/attributes/prop.js5
2 files changed, 6 insertions, 4 deletions
diff --git a/src/attributes/attr.js b/src/attributes/attr.js
index 916f64093..47639c97e 100644
--- a/src/attributes/attr.js
+++ b/src/attributes/attr.js
@@ -2,10 +2,11 @@ define([
"../core",
"../var/rnotwhite",
"../var/strundefined",
+ "../core/access",
"./support",
"./val",
"../selector"
-], function( jQuery, rnotwhite, strundefined, support ) {
+], function( jQuery, rnotwhite, strundefined, access, support ) {
var nodeHook, boolHook,
attrHandle = jQuery.expr.attrHandle,
@@ -15,7 +16,7 @@ var nodeHook, boolHook,
jQuery.fn.extend({
attr: function( name, value ) {
- return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 );
+ return access( this, jQuery.attr, name, value, arguments.length > 1 );
},
removeAttr: function( name ) {
diff --git a/src/attributes/prop.js b/src/attributes/prop.js
index 0acd62a2c..817a1b621 100644
--- a/src/attributes/prop.js
+++ b/src/attributes/prop.js
@@ -1,14 +1,15 @@
define([
"../core",
+ "../core/access",
"./support"
-], function( jQuery, support ) {
+], function( jQuery, access, support ) {
var rfocusable = /^(?:input|select|textarea|button|object)$/i,
rclickable = /^(?:a|area)$/i;
jQuery.fn.extend({
prop: function( name, value ) {
- return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 );
+ return access( this, jQuery.prop, name, value, arguments.length > 1 );
},
removeProp: function( name ) {