Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Jan 7, 2014
1 parent ee935a1 commit 99afcc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var importParser = {
if (!document.__importParsed) {
// only parse once
document.__importParsed = true;
console.group('parsing', scope.path.getDocumentUrl(document));
//console.group('parsing', scope.path.getDocumentUrl(document));
var tracker = new LoadTracker(document, done);
// all parsable elements in inDocument (depth-first pre-order traversal)
var elts = document.querySelectorAll(importParser.selectors);
Expand All @@ -50,7 +50,7 @@ var importParser = {
elts = document.querySelectorAll(importParser.selectors);
}
}
console.groupEnd('parsing', scope.path.getDocumentUrl(document));
//console.groupEnd('parsing', scope.path.getDocumentUrl(document));
tracker.open();
} else if (done) {
done();
Expand Down Expand Up @@ -146,7 +146,7 @@ LoadTracker.prototype = {
},
require: function(elt) {
this.add();
console.log('require', elt, this.pending);
//console.log('require', elt, this.pending);
var names = ['load', 'error'], self = this;
for (var i=0, l=names.length, n; (i<l) && (n=names[i]); i++) {
elt.addEventListener(n, function(e) {
Expand All @@ -156,15 +156,15 @@ LoadTracker.prototype = {
},
receive: function(e) {
this.pending--;
console.log('receive', e.target, this.pending);
//console.log('receive', e.target, this.pending);
this.checkDone();
},
checkDone: function() {
if (!this.isOpen) {
return;
}
if (this.pending <= 0 && this.callback) {
console.log('done!', this.doc, scope.path.getDocumentUrl(this.doc));
//console.log('done!', this.doc, scope.path.getDocumentUrl(this.doc));
this.isOpen = false;
this.callback();
}
Expand Down
2 changes: 1 addition & 1 deletion src/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function bootstrap() {
HTMLImports.ready = true;
HTMLImports.readyTime = new Date().getTime();
// send HTMLImportsLoaded when finished
console.warn('firing HTMLImportsLoaded');
//console.warn('firing HTMLImportsLoaded');
doc.dispatchEvent(
new CustomEvent('HTMLImportsLoaded', {bubbles: true})
);
Expand Down

0 comments on commit 99afcc8

Please sign in to comment.