Dialog: Remove use of $.now() in performance test

This commit is contained in:
Scott González 2016-03-03 13:38:57 -05:00
parent ff3769272b
commit 54cd4510ef

View File

@ -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>