UNPKG
ineed
Version:
latest (1.1.0)
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
Web scraping and HTML-reprocessing. The easy way.
inikulin.github.io/ineed/
inikulin/ineed
ineed
/
lib
/
plugins
/
collecting
/
comments.js
17 lines
(13 loc)
•
285 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module
.
exports
= {
name
:
'comments'
,
extends
:
'collect'
,
init
:
function
(
) {
this
.
collection
= []; },
onComment
:
function
(
comment
) {
this
.
collection
.
push
(comment); },
getCollection
:
function
(
) {
return
this
.
collection
; } };