aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authorBrandon Aaron <brandon.aaron@gmail.com>2009-03-22 15:06:58 +0000
committerBrandon Aaron <brandon.aaron@gmail.com>2009-03-22 15:06:58 +0000
commit9476530fa1e39ce1324e98f4dbb79576895372e5 (patch)
tree5d2b40ed8ea01a0e777e716d026152de632aecf0 /src/attributes.js
parenta974b255c30ac23906ba45bf95de99542a70b587 (diff)
downloadjquery-9476530fa1e39ce1324e98f4dbb79576895372e5.tar.gz
jquery-9476530fa1e39ce1324e98f4dbb79576895372e5.zip
moving some vars from manipulations.js to attributes.js
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/attributes.js b/src/attributes.js
index 8d5c2229c..7690c8117 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -1,3 +1,8 @@
+// exclude the following css properties to add px
+var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
+ // cache defaultView
+ defaultView = document.defaultView || {};
+
jQuery.fn.extend({
attr: function( name, value, type ) {
var options = name, isFunction = jQuery.isFunction( value );