Skip to content

Commit

Permalink
remove stray console.log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Apr 15, 2020
1 parent 471ed17 commit c1a286b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/core/data-cite.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ async function updateBiblio(elems) {

/** @param {Document} doc */
function cleanup(doc) {
console.log("cleanup");
const attrToRemove = ["data-cite", "data-cite-frag", "data-cite-path"];
const elems = doc.querySelectorAll("a[data-cite], dfn[data-cite]");
elems.forEach(elem =>
Expand Down
4 changes: 0 additions & 4 deletions src/core/exporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,5 @@ function cleanup(cloneDoc) {

insertions.appendChild(metaGenerator);
head.prepend(insertions);
console.log('calll beforesave');
console.log(subscriptions);

pub("beforesave", documentElement);
console.log('end beforesave');
}
5 changes: 0 additions & 5 deletions src/core/pubsubhub.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ export const name = "core/pubsubhub";
export const subscriptions = new Map();

export function pub(topic, ...data) {
if (topic === "beforesave") console.log("pub", subscriptions.get(topic));

if (!subscriptions.has(topic)) {
return; // Nothing to do...
}
Expand Down Expand Up @@ -52,7 +50,6 @@ export function sub(topic, cb, opts = { once: false }) {
cb(...args);
});
}
if (topic === "beforesave") console.log("sub", subscriptions.get(topic));

if (subscriptions.has(topic)) {
subscriptions.get(topic).add(cb);
Expand All @@ -67,8 +64,6 @@ export function sub(topic, cb, opts = { once: false }) {
* @param {Object} opaque The object that was returned from calling sub()
*/
export function unsub({ topic, cb }) {
console.log(">> unsub", topic);

// opaque is whatever is returned by sub()
const callbacks = subscriptions.get(topic);
if (!callbacks || !callbacks.has(cb)) {
Expand Down

0 comments on commit c1a286b

Please sign in to comment.