puggernaut 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/config/gemspec.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  name: puggernaut
2
- version: 0.1.2
2
+ version: 0.1.3
3
3
  authors:
4
4
  - Winton Welsh
5
5
  email: mail@wintoni.us
@@ -61,7 +61,10 @@ module Puggernaut
61
61
  }.join("\n")
62
62
  end
63
63
  end
64
- channel.push push.compact.join("\n")
64
+ push = push.compact
65
+ unless push.empty?
66
+ channel.push push.join("\n")
67
+ end
65
68
  end
66
69
  end
67
70
  end
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('watch.' + line[0], line[2]);
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('watch');
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('watch.' + item, fn);
89
+ events.bind(item, fn);
90
90
  });
91
91
 
92
92
  if (!started)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Winton Welsh