From 73dd09f630aa635543edba6248352aa93148a2b9 Mon Sep 17 00:00:00 2001 From: mannynotfound Date: Sun, 12 Jun 2016 16:28:40 -0400 Subject: [PATCH] older syntax for older versions of node --- app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 8c1ae41..1a80eb5 100644 --- a/app.js +++ b/app.js @@ -6,7 +6,7 @@ function DeleteTrump(api) { } DeleteTrump.prototype = { - startStream() { + startStream:function () { var self = this; this.client.stream('statuses/filter', { 'follow': '25073877' @@ -33,7 +33,7 @@ DeleteTrump.prototype = { }); }, - resurrect() { + resurrect:function () { this.stream = null var self = this; console.log('RESURRECTING STREAM'); @@ -42,7 +42,7 @@ DeleteTrump.prototype = { }, 1000 * 60 * 5 ); // wait 5 minutes }, - handleError(err) { + handleError:function (err) { console.log(err); process.exit(); }