mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 04:24:45 -04:00
Fixed unchecked use of console.log.
This commit is contained in:
parent
5db74d054f
commit
0f681930b3
7 changed files with 19 additions and 6 deletions
|
@ -17,6 +17,12 @@ please respect their rights.
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
### v0.12.1
|
||||||
|
*2011-07-29*
|
||||||
|
|
||||||
|
* fixed unchecked use of console.log
|
||||||
|
|
||||||
|
|
||||||
### v0.12
|
### v0.12
|
||||||
*2011-07-28*
|
*2011-07-28*
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ custom = true
|
||||||
|
|
||||||
# project
|
# project
|
||||||
project.name = h5ai
|
project.name = h5ai
|
||||||
project.version = 0.12
|
project.version = 0.12.1
|
||||||
|
|
||||||
|
|
||||||
# src
|
# src
|
||||||
|
|
BIN
release/h5ai-0.12.1.tar.gz
Normal file
BIN
release/h5ai-0.12.1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -223,7 +223,7 @@ var H5ai = function ( options, langs, pathCache ) {
|
||||||
$( "#table" ).remove();
|
$( "#table" ).remove();
|
||||||
|
|
||||||
$( "#extended" ).append( $ul );
|
$( "#extended" ).append( $ul );
|
||||||
console.log( "folders", $( "#extended .folder" ).size() , "files", $( "#extended .file" ).size() );
|
$.log( document.location.pathname, "folders:", $( "#extended .folder" ).size() , "files:", $( "#extended .file" ).size() );
|
||||||
|
|
||||||
// empty
|
// empty
|
||||||
if ( $ul.children( ".entry:not(.parentfolder)" ).size() === 0 ) {
|
if ( $ul.children( ".entry:not(.parentfolder)" ).size() === 0 ) {
|
||||||
|
|
|
@ -6,14 +6,21 @@
|
||||||
// @include "inc/h5ai.js"
|
// @include "inc/h5ai.js"
|
||||||
// @include "inc/tree.js"
|
// @include "inc/tree.js"
|
||||||
|
|
||||||
|
// http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
|
||||||
|
$.log = function () {
|
||||||
|
$.log.history = $.log.history || [];
|
||||||
|
$.log.history.push( arguments );
|
||||||
|
if ( window.console ) {
|
||||||
|
window.console.log( Array.prototype.slice.call( arguments ) );
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
var Timer = function () {
|
var Timer = function () {
|
||||||
|
|
||||||
this.start = new Date().getTime();;
|
this.start = new Date().getTime();;
|
||||||
this.last = this.start;
|
this.last = this.start;
|
||||||
this.log = function ( label ) {
|
this.log = function ( label ) {
|
||||||
var now = new Date().getTime();
|
var now = new Date().getTime();
|
||||||
console.log( "timer", label, "+" + (now - this.last), "=" + (now - this.start) );
|
$.log( "timer", label, "+" + (now - this.last), "=" + (now - this.start) );
|
||||||
this.last = now;
|
this.last = now;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue