diff --git a/README.md b/README.md index a487f40b..2931e28c 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,12 @@ please respect their rights. ## Changelog +### v0.12.1 +*2011-07-29* + +* fixed unchecked use of console.log + + ### v0.12 *2011-07-28* diff --git a/build.properties b/build.properties index 56369e69..b1997eda 100644 --- a/build.properties +++ b/build.properties @@ -3,7 +3,7 @@ custom = true # project project.name = h5ai -project.version = 0.12 +project.version = 0.12.1 # src diff --git a/release/h5ai-0.12.1.tar.gz b/release/h5ai-0.12.1.tar.gz new file mode 100644 index 00000000..4ffd5575 Binary files /dev/null and b/release/h5ai-0.12.1.tar.gz differ diff --git a/release/h5ai-0.12.zip b/release/h5ai-0.12.1.zip similarity index 90% rename from release/h5ai-0.12.zip rename to release/h5ai-0.12.1.zip index 79d738ed..21c7a0fe 100644 Binary files a/release/h5ai-0.12.zip and b/release/h5ai-0.12.1.zip differ diff --git a/release/h5ai-0.12.tar.gz b/release/h5ai-0.12.tar.gz deleted file mode 100644 index dfe7b2be..00000000 Binary files a/release/h5ai-0.12.tar.gz and /dev/null differ diff --git a/src/h5ai/js/inc/h5ai.js b/src/h5ai/js/inc/h5ai.js index f3bee6c8..533a93de 100644 --- a/src/h5ai/js/inc/h5ai.js +++ b/src/h5ai/js/inc/h5ai.js @@ -219,11 +219,11 @@ var H5ai = function ( options, langs, pathCache ) { var path = pathCache.getPathForTableRow( document.location.pathname, this ); $ul.append( path.updateExtendedHtml() ); } ); - $.timer.log( "end entries" ); + $.timer.log( "end entries" ); $( "#table" ).remove(); $( "#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 if ( $ul.children( ".entry:not(.parentfolder)" ).size() === 0 ) { diff --git a/src/h5ai/js/main.js b/src/h5ai/js/main.js index bd84841b..590d21b3 100644 --- a/src/h5ai/js/main.js +++ b/src/h5ai/js/main.js @@ -6,14 +6,21 @@ // @include "inc/h5ai.js" // @include "inc/tree.js" - - var Timer = function () { + // 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 () { this.start = new Date().getTime();; this.last = this.start; this.log = function ( label ) { 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; }; };