diff --git a/lib/methods/on.js b/lib/methods/on.js index 52f6b83..b0da77d 100644 --- a/lib/methods/on.js +++ b/lib/methods/on.js @@ -29,11 +29,6 @@ function on(event, selector, callback) { this.trackedElements[selector].nodes.push(item); } - if (typeof this.trackedElements[selector][event] === 'function' && - typeof callback === 'function') { - console.warn(`${selector}'s ${event} callback was overridden`); - } - if (typeof callback === 'function') { this.trackedElements[selector][event] = callback; } diff --git a/package.json b/package.json index 64644de..a24e25e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "onscreen", "version": "1.1.1", - "description": "A light UI library that does stuff when the matched elements enter or leave the viewport", + "description": "A light library that does stuff when the matched elements enter or leave the viewport", "main": "dist/onScreen.umd.js", "jsnext:main": "dist/onScreen.es6.js", "scripts": { diff --git a/test/insideViewport_test.js b/test/insideViewport_test.js index 567e021..7001300 100644 --- a/test/insideViewport_test.js +++ b/test/insideViewport_test.js @@ -6,7 +6,7 @@ function takeScreenshot() { if (window.callPhantom) { const date = new Date(); const filename = `screenshots/${date.getTime()}`; - console.log(`Taking screenshot ${filename}`); + callPhantom({ screenshot: filename });