Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

renames _callback to _emptyfn

  • Loading branch information...
commit 209a731ed820e857f46a1e28b0dbd1c3d9af7f7c 1 parent 89b340c
@manuelstofer authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/trickle.js
View
8 lib/trickle.js
@@ -2,12 +2,12 @@
var VERSION = '0.0.1';
- var Trickle = function (interval, callback) {
+ var Trickle = function (interval, empty) {
this._interval = interval;
this._requests = [];
this._lastRun = 0;
this._paused = false;
- this._callback = callback;
+ this._emptyfn = empty;
};
Trickle.prototype = {
@@ -62,8 +62,8 @@
this._plan(this._lastRun + this._interval - now);
}
- if (this.isEmpty() && this._callback) {
- this._callback();
+ if (this.isEmpty() && this._emptyfn) {
+ this._emptyfn();
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.