older syntax for older versions of node

This commit is contained in:
mannynotfound
2016-06-12 16:28:40 -04:00
parent 6fcbd41560
commit 73dd09f630

6
app.js
View File

@@ -6,7 +6,7 @@ function DeleteTrump(api) {
} }
DeleteTrump.prototype = { DeleteTrump.prototype = {
startStream() { startStream:function () {
var self = this; var self = this;
this.client.stream('statuses/filter', { this.client.stream('statuses/filter', {
'follow': '25073877' 'follow': '25073877'
@@ -33,7 +33,7 @@ DeleteTrump.prototype = {
}); });
}, },
resurrect() { resurrect:function () {
this.stream = null this.stream = null
var self = this; var self = this;
console.log('RESURRECTING STREAM'); console.log('RESURRECTING STREAM');
@@ -42,7 +42,7 @@ DeleteTrump.prototype = {
}, 1000 * 60 * 5 ); // wait 5 minutes }, 1000 * 60 * 5 ); // wait 5 minutes
}, },
handleError(err) { handleError:function (err) {
console.log(err); console.log(err);
process.exit(); process.exit();
} }