]> source.dussan.org Git - jquery.git/commitdiff
Remove redundant prefixes from the CSS order test.
authorMichał Gołębiowski <m.goleb@gmail.com>
Mon, 19 Aug 2013 17:53:31 +0000 (19:53 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 19 Aug 2013 17:53:31 +0000 (19:53 +0200)
test/unit/css.js

index 815cace43301bead444db1924c9a2d5bd9f0d287..4e0ae1e55f351e48fad9e5916a19f45c13647de0 100644 (file)
@@ -1016,17 +1016,7 @@ asyncTest( "Make sure initialized display value for disconnected nodes is correc
 // but it's the best that we can do.
 (function() {
        var style = document.createElement( "div" ).style,
-               prefixes = [ "Webkit", "O", "Moz", "ms" ],
-               exist = "order" in style,
-               i = 0;
-
-       if ( !exist ) {
-               for ( ; i < prefixes.length; i++ ) {
-                       if ( exist = prefixes[ i ] + "Order" in style ) {
-                               break;
-                       }
-               }
-       }
+               exist = "order" in style || "WebkitOrder" in style;
 
        if ( exist ) {
                test( "Don't append px to CSS \"order\" value (#14049)", 1, function() {