From 7ce57c859ab914d65df9c659e1a6ef3fde79c63c Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Wed, 14 Sep 2016 14:56:14 -0400 Subject: Consolidate into a single library --- lib/util.js | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 lib/util.js (limited to 'lib/util.js') diff --git a/lib/util.js b/lib/util.js deleted file mode 100644 index 3c6857c..0000000 --- a/lib/util.js +++ /dev/null @@ -1,13 +0,0 @@ -HTMLCollection.prototype.map = function(fn) { - var results = []; - for (var idx = 0; idx < this.length; idx++) { - results.push(fn(this.item(idx))); - } - return results; -}; - -HTMLCollection.prototype.forEach = function(fn) { - for (var idx = 0; idx < this.length; idx++) { - fn(this.item(idx)); - } -}; -- cgit v1.2.3