Skip to content
Permalink
Browse files

Using .cssText instead of $.extend( style )

  • Loading branch information
gnarf committed Sep 14, 2011
1 parent 3c0af9d commit 59015e2d826ca3d301b449863ec42038559c6068
Showing with 1 addition and 10 deletions.
  1. +1 −10 src/support.js
@@ -259,16 +259,7 @@ jQuery.support = (function() {
"<table " + style + " cellpadding='0' cellspacing='0'>" +
"<tr><td></td></tr></table>";

jQuery.extend( container.style, {
position: "absolute",
top: 0,
left: 0,
margin: 0,
border: 0,
width: "1px",
height: "1px",
visibility: "hidden"
});
container.style.cssText = "position:absolute;top:0;left:0;margin:0;border:0;width:1px;height:1px;visibility:hidden";

container.innerHTML = html;
body.insertBefore( container, body.firstChild );

0 comments on commit 59015e2

Please sign in to comment.
You can’t perform that action at this time.