mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: Remove use of $.now()
in performance test
This commit is contained in:
parent
ff3769272b
commit
54cd4510ef
@ -10,17 +10,17 @@
|
||||
html = new Array( 500 ).join( $.trim( $( "#template" ).html() ) );
|
||||
$( html ).appendTo( "body" );
|
||||
|
||||
start = $.now();
|
||||
start = new Date();
|
||||
$( "#dialog" ).dialog({
|
||||
modal: true,
|
||||
autoOpen: false
|
||||
});
|
||||
$( "<li>Create: " + ($.now() - start) + "ms</li>" ).appendTo( "#log" );
|
||||
$( "<li>Create: " + (new Date() - start) + "ms</li>" ).appendTo( "#log" );
|
||||
|
||||
$( "#opener" ).on( "click", function() {
|
||||
start = $.now();
|
||||
start = new Date();
|
||||
$( "#dialog" ).dialog( "open" );
|
||||
$( "<li>Open: " + ($.now() - start) + "ms</li>" ).appendTo( "#log" );
|
||||
$( "<li>Open: " + (new Date() - start) + "ms</li>" ).appendTo( "#log" );
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user