From 3b53b75160606610cc8f87404f89fc9e10441c4b Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Mon, 9 Sep 2013 11:26:21 -0400 Subject: 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. --- src/attributes/attr.js | 5 +++-- src/attributes/prop.js | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/attributes') 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 ) { -- cgit v1.2.3