Permalink
Browse files

renames _callback to _emptyfn

  • Loading branch information...
1 parent 89b340c commit 209a731ed820e857f46a1e28b0dbd1c3d9af7f7c @manuelstofer committed Feb 14, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/trickle.js
View
@@ -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();
}
},

0 comments on commit 209a731

Please sign in to comment.