puggernaut 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/config/gemspec.yml +1 -1
- data/lib/puggernaut/server/channel.rb +4 -1
- data/public/puggernaut.js +3 -3
- metadata +2 -2
data/config/gemspec.yml
CHANGED
data/public/puggernaut.js
CHANGED
@@ -30,7 +30,7 @@ var Puggernaut = new function() {
|
|
30
30
|
line = line.split('|', 3);
|
31
31
|
if (typeof channels[line[0]] != 'undefined')
|
32
32
|
channels[line[0]] = line[1];
|
33
|
-
events.trigger(
|
33
|
+
events.trigger(line[0], line[2]);
|
34
34
|
});
|
35
35
|
ajax();
|
36
36
|
},
|
@@ -75,7 +75,7 @@ var Puggernaut = new function() {
|
|
75
75
|
});
|
76
76
|
events.unbind.apply(events, args);
|
77
77
|
} else
|
78
|
-
events.unbind(
|
78
|
+
events.unbind();
|
79
79
|
return this;
|
80
80
|
}
|
81
81
|
|
@@ -86,7 +86,7 @@ var Puggernaut = new function() {
|
|
86
86
|
if (ch.length && fn) {
|
87
87
|
$.each(ch, function(i, item) {
|
88
88
|
channels[item] = channels[item] || null;
|
89
|
-
events.bind(
|
89
|
+
events.bind(item, fn);
|
90
90
|
});
|
91
91
|
|
92
92
|
if (!started)
|