diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2015-03-30 19:19:15 +0200 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2015-04-13 11:41:57 -0400 |
commit | bb4d888f4f7886371347b59eae5d4e6135acb7ed (patch) | |
tree | b29be820cfe4fc0a1d31ebf8b24ecf08bdbea51d /src/css | |
parent | 3a0dd5a3d3a23e81dfb32af2871fab6be4619434 (diff) | |
download | jquery-bb4d888f4f7886371347b59eae5d4e6135acb7ed.tar.gz jquery-bb4d888f4f7886371347b59eae5d4e6135acb7ed.zip |
CSS: Don't expose jQuery.swap
jQuery.swap was an undocumented API used only internally. With the modular
AMD system we currently have it's not necessary to expose this function
publicly under the jQuery object.
Fixes gh-2058
Closes gh-2182
Diffstat (limited to 'src/css')
-rw-r--r-- | src/css/var/swap.js (renamed from src/css/swap.js) | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/css/swap.js b/src/css/var/swap.js index ce1643531..61351f14b 100644 --- a/src/css/swap.js +++ b/src/css/var/swap.js @@ -1,9 +1,7 @@ -define([ - "../core" -], function( jQuery ) { +define(function() { // A method for quickly swapping in/out CSS properties to get correct calculations. -jQuery.swap = function( elem, options, callback, args ) { +return function swap( elem, options, callback, args ) { var ret, name, old = {}; @@ -23,6 +21,4 @@ jQuery.swap = function( elem, options, callback, args ) { return ret; }; -return jQuery.swap; - }); |