Browse files

Updated User Interface hook

  • Loading branch information...
1 parent 46bbcb1 commit c289386d4753ecbaf48c221910b201f1b81992c3 Tom Ellis committed Aug 18, 2011
Showing with 3 additions and 6 deletions.
  1. +3 −6 userinterface.js
View
9 userinterface.js
@@ -8,8 +8,6 @@
*/
(function($) {
- //User Interface cssHook
-
var div = document.createElement( "div" ),
divStyle = div.style,
propertyName = 'user',
@@ -21,11 +19,11 @@
'Focus'
],
testProperties = [
+ propertyName,
'Moz' + suffix,
'Webkit' + suffix,
'O' + suffix,
- 'ms' + suffix,
- propertyName
+ 'ms' + suffix
],
supportProperty,
j = props.length;
@@ -53,8 +51,7 @@
get: function( elem, computed ) {
return ( computed ? $.css( elem, $.support[propertyName+prop] ) : elem.style[$.support[propertyName+prop]] );
},
- set: function( elem, value ) {
-
+ set: function( elem, value ) {
elem.style[$.support[propertyName+prop]] = value;
}
};

0 comments on commit c289386

Please sign in to comment.