aboutsummaryrefslogtreecommitdiffstats
path: root/lib/filter.js
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-28 17:50:24 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-28 17:50:24 +0800
commit63d9c070ef7637a3d570a5a45ea931c1680ebc02 (patch)
tree5417c8da151ca6be820a1a4ec4b023191dff7f2b /lib/filter.js
parent1345a8c67c41a31847c0dea23a7e7904bf25779a (diff)
downloadgo-tangerine-63d9c070ef7637a3d570a5a45ea931c1680ebc02.tar.gz
go-tangerine-63d9c070ef7637a3d570a5a45ea931c1680ebc02.tar.zst
go-tangerine-63d9c070ef7637a3d570a5a45ea931c1680ebc02.zip
fixed incoming messages
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]);
}
}