aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
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 );