Skip to content

Commit

Permalink
Show a warning if the user hasn't extended the EmberPusher.Bindings m…
Browse files Browse the repository at this point in the history
…ixin
  • Loading branch information
gilgen committed Apr 16, 2014
1 parent 5add6c9 commit 5c3cd86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ember-pusher/controller.js
Expand Up @@ -67,6 +67,8 @@ var Controller = Ember.Controller.extend({
// @events a hash in the form { channel-name: ['event1', 'event2'] }
// @target any object that responds to send() and _pusherEventsId()
wire: function(target, channelName, events) {
Ember.assert("Did you forget to extend the EmberPusher.Bindings mixin in " +
"your class receiving events?", !!target._pusherEventsId);
var channel = this.connectChannel(channelName),
bindings = this.get('bindings'),
targetId = target._pusherEventsId();
Expand Down

0 comments on commit 5c3cd86

Please sign in to comment.