Skip to content

Commit

Permalink
add topic.sub to Widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Wilcox committed Jul 13, 2012
1 parent 258d558 commit 9d0c563
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ define([
return h;
},

sub: function(/*String*/channel, /*Object|Function*/ctx, /*String|Function*/method, /*String?*/group){
this._connections = this._connections || [];
var h = on.sub(channel, ctx, method, group);
this._connections.push(h);
return h;
},

// add sub() ?

destroy: function(){
Expand Down

0 comments on commit 9d0c563

Please sign in to comment.