diff options
author | Trey Hunner <treyhunner@gmail.com> | 2012-05-18 13:28:50 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-05-18 13:28:50 -0400 |
commit | f1dcaad09736c194f9148e5bf5fb08498a483a7a (patch) | |
tree | c4de3c9b5b52643e6cf894a2154101b23dafa53c /speed/closest.html | |
parent | c4df0c91bed4358ddca4b493afc06c69e5b501f0 (diff) | |
download | jquery-f1dcaad09736c194f9148e5bf5fb08498a483a7a.tar.gz jquery-f1dcaad09736c194f9148e5bf5fb08498a483a7a.zip |
Fix indentation in /speed and /test dirs, closes gh-780.
Diffstat (limited to 'speed/closest.html')
-rw-r--r-- | speed/closest.html | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/speed/closest.html b/speed/closest.html index bb31f5d8b..12469f7db 100644 --- a/speed/closest.html +++ b/speed/closest.html @@ -6,34 +6,34 @@ <script src="jquery-basis.js"></script> <script>var old = jQuery.noConflict(true);</script> <script src="../dist/jquery.js"></script> - <script> - jQuery(function ready() { - var node = $("#child"), name; + <script> + jQuery(function ready() { + var node = $("#child"), name; - jQuery.each([".zoo", "#zoo", "[data-foo=zoo]", "#nonexistant"], function(i, item) { + jQuery.each([".zoo", "#zoo", "[data-foo=zoo]", "#nonexistant"], function(i, item) { setTimeout(function(){ - name = "closest '" + item + "'"; + name = "closest '" + item + "'"; jQuery("#results").append("<li>" + name + "<ul>" + - "<li>new: " + benchmarkString("$('#child').closest('" + item + "')", 2500, name) + "</li>" + - "<li>old: " + benchmarkString("old('#child').closest('" + item + "')", 2500, name) + "</li>" + "<li>new: " + benchmarkString("$('#child').closest('" + item + "')", 2500, name) + "</li>" + + "<li>old: " + benchmarkString("old('#child').closest('" + item + "')", 2500, name) + "</li>" + "</ul></li>"); }, 100); - }); - }); - </script> + }); + }); + </script> </head> <body> - <div> - <p>Hello</p> - <div class="zoo" id="zoo" data-foo="bar"> - <div> - <p id="child">lorem ipsum</p> - <p>dolor sit amet</p> - </div> - </div> - </div> - <ul id="results"></ul> + <div> + <p>Hello</p> + <div class="zoo" id="zoo" data-foo="bar"> + <div> + <p id="child">lorem ipsum</p> + <p>dolor sit amet</p> + </div> + </div> + </div> + <ul id="results"></ul> </body> </html> |