aboutsummaryrefslogtreecommitdiffstats
path: root/lib/filter.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/filter.js')
-rw-r--r--lib/filter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filter.js b/lib/filter.js
index 8c7dc6e33..d93064b58 100644
--- a/lib/filter.js
+++ b/lib/filter.js
@@ -48,7 +48,7 @@ Filter.prototype.changed = function(callback) {
/// trigger calling new message from people
Filter.prototype.trigger = function(messages) {
for (var i = 0; i < this.callbacks.length; i++) {
- for (var j = 0; j < messages; j++) {
+ for (var j = 0; j < messages.length; j++) {
this.callbacks[i].call(this, messages[j]);
}
}