diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2013-09-09 11:26:21 -0400 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-09-09 11:34:23 -0400 |
commit | 3b53b75160606610cc8f87404f89fc9e10441c4b (patch) | |
tree | b20600c885ee70e7b9cc7c880fc7a2cf141b56a8 /src/attributes | |
parent | 2fe09ceaf9c261d8e7fbdf37a13b21bfd85da962 (diff) | |
download | jquery-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/attributes')
-rw-r--r-- | src/attributes/attr.js | 5 | ||||
-rw-r--r-- | src/attributes/prop.js | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/attributes/attr.js b/src/attributes/attr.js index e47bde2f3..8601cfe11 100644 --- a/src/attributes/attr.js +++ b/src/attributes/attr.js @@ -2,16 +2,17 @@ define([ "../core", "../var/rnotwhite", "../var/strundefined", + "../core/access", "./support", "../selector" -], function( jQuery, rnotwhite, strundefined, support ) { +], function( jQuery, rnotwhite, strundefined, access, support ) { var nodeHook, boolHook, attrHandle = jQuery.expr.attrHandle; 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 f321b1ef7..e2b95dcab 100644 --- a/src/attributes/prop.js +++ b/src/attributes/prop.js @@ -1,13 +1,14 @@ define([ "../core", + "../core/access", "./support" -], function( jQuery, support ) { +], function( jQuery, access, support ) { var rfocusable = /^(?:input|select|textarea|button)$/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 ) { |