Skip to content

Commit c1a286b

Browse files
committed
remove stray console.log statements
1 parent 471ed17 commit c1a286b

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

src/core/data-cite.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ async function updateBiblio(elems) {
203203

204204
/** @param {Document} doc */
205205
function cleanup(doc) {
206-
console.log("cleanup");
207206
const attrToRemove = ["data-cite", "data-cite-frag", "data-cite-path"];
208207
const elems = doc.querySelectorAll("a[data-cite], dfn[data-cite]");
209208
elems.forEach(elem =>

src/core/exporter.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,5 @@ function cleanup(cloneDoc) {
8888

8989
insertions.appendChild(metaGenerator);
9090
head.prepend(insertions);
91-
console.log('calll beforesave');
92-
console.log(subscriptions);
93-
9491
pub("beforesave", documentElement);
95-
console.log('end beforesave');
9692
}

src/core/pubsubhub.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ export const name = "core/pubsubhub";
1010
export const subscriptions = new Map();
1111

1212
export function pub(topic, ...data) {
13-
if (topic === "beforesave") console.log("pub", subscriptions.get(topic));
14-
1513
if (!subscriptions.has(topic)) {
1614
return; // Nothing to do...
1715
}
@@ -52,7 +50,6 @@ export function sub(topic, cb, opts = { once: false }) {
5250
cb(...args);
5351
});
5452
}
55-
if (topic === "beforesave") console.log("sub", subscriptions.get(topic));
5653

5754
if (subscriptions.has(topic)) {
5855
subscriptions.get(topic).add(cb);
@@ -67,8 +64,6 @@ export function sub(topic, cb, opts = { once: false }) {
6764
* @param {Object} opaque The object that was returned from calling sub()
6865
*/
6966
export function unsub({ topic, cb }) {
70-
console.log(">> unsub", topic);
71-
7267
// opaque is whatever is returned by sub()
7368
const callbacks = subscriptions.get(topic);
7469
if (!callbacks || !callbacks.has(cb)) {

0 commit comments

Comments
 (0)