aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2013-03-04 05:20:25 +0100
committerDave Methvin <dave.methvin@gmail.com>2013-04-03 22:08:46 -0400
commitdf7847bc25f264c22f46401981a6f6ba12497d52 (patch)
tree2f26fc5cdca89325f38f6d75f7cf01aacec30dc9 /src/css.js
parent01fcdba20836e69977cfc47d7cfd4d23851e8ad0 (diff)
downloadjquery-df7847bc25f264c22f46401981a6f6ba12497d52.tar.gz
jquery-df7847bc25f264c22f46401981a6f6ba12497d52.zip
Fix #13543. offsetWidth is wrong on non-1 zoom. Close gh-1218.
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/css.js b/src/css.js
index 1d1531452..892debf54 100644
--- a/src/css.js
+++ b/src/css.js
@@ -279,27 +279,6 @@ jQuery.extend({
return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;
}
return val;
- },
-
- // A method for quickly swapping in/out CSS properties to get correct calculations
- swap: function( elem, options, callback, args ) {
- var ret, name,
- old = {};
-
- // Remember the old values, and insert the new ones
- for ( name in options ) {
- old[ name ] = elem.style[ name ];
- elem.style[ name ] = options[ name ];
- }
-
- ret = callback.apply( elem, args || [] );
-
- // Revert the old values
- for ( name in options ) {
- elem.style[ name ] = old[ name ];
- }
-
- return ret;
}
});